mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 07:05:13 +00:00
94496d0ac8
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/python3.7-asynctest/versions
31 lines
868 B
Nix
31 lines
868 B
Nix
{ lib, buildPythonPackage, fetchPypi, pythonOlder, python }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "asynctest";
|
|
version = "0.13.0";
|
|
|
|
disabled = pythonOlder "3.5";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "1b3zsy7p84gag6q8ai2ylyrhx213qdk2h2zb6im3xn0m5n264y62";
|
|
};
|
|
|
|
postPatch = ''
|
|
# Skip failing test, probably caused by file system access
|
|
substituteInPlace test/test_selector.py \
|
|
--replace "test_events_watched_outside_test_are_ignored" "xtest_events_watched_outside_test_are_ignored"
|
|
'';
|
|
|
|
checkPhase = ''
|
|
${python.interpreter} -m unittest test
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Enhance the standard unittest package with features for testing asyncio libraries";
|
|
homepage = https://github.com/Martiusweb/asynctest;
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
};
|
|
}
|