Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at litex 1.0 kB view raw
1{ lib, buildPythonPackage, fetchPypi, pythonOlder, python, pythonAtLeast }: 2 3buildPythonPackage rec { 4 pname = "asynctest"; 5 version = "0.13.0"; 6 7 # Unmaintained and incompatible python 3.11 8 disabled = pythonAtLeast "3.11"; 9 10 src = fetchPypi { 11 inherit pname version; 12 sha256 = "1b3zsy7p84gag6q8ai2ylyrhx213qdk2h2zb6im3xn0m5n264y62"; 13 }; 14 15 postPatch = '' 16 # Skip failing test, probably caused by file system access 17 substituteInPlace test/test_selector.py \ 18 --replace "test_events_watched_outside_test_are_ignored" "xtest_events_watched_outside_test_are_ignored" 19 ''; 20 21 # https://github.com/Martiusweb/asynctest/issues/132 22 doCheck = pythonOlder "3.7"; 23 24 checkPhase = '' 25 ${python.interpreter} -m unittest test 26 ''; 27 28 meta = with lib; { 29 description = "Enhance the standard unittest package with features for testing asyncio libraries"; 30 homepage = "https://github.com/Martiusweb/asynctest"; 31 license = licenses.asl20; 32 maintainers = with maintainers; [ dotlambda ]; 33 }; 34}