lol

python311Packages.eliot: switch to pytestCheckHook

+21 -13
+21 -13
pkgs/development/python-modules/eliot/default.nix
··· 6 6 , boltons 7 7 , hypothesis 8 8 , pyrsistent 9 - , pytest 9 + , pytestCheckHook 10 10 , setuptools 11 11 , six 12 12 , testtools ··· 16 16 buildPythonPackage rec { 17 17 pname = "eliot"; 18 18 version = "1.14.0"; 19 + format = "setuptools"; 20 + 19 21 disabled = pythonOlder "3.6"; 20 22 21 23 src = fetchPypi { 22 24 inherit pname version; 23 - sha256 = "c2f099a3e8d5ecfc22745766e7cc664a48db64b6b89d986dff270491d8683149"; 25 + hash = "sha256-wvCZo+jV7PwidFdm58xmSkjbZLa4nZht/ycEkdhoMUk="; 24 26 }; 25 27 26 - nativeCheckInputs = [ 27 - hypothesis 28 - testtools 29 - pytest 30 - ]; 31 - 32 28 propagatedBuildInputs = [ 33 29 aiocontextvars 34 30 boltons ··· 38 34 zope_interface 39 35 ]; 40 36 41 - pythonImportsCheck = [ "eliot" ]; 37 + nativeCheckInputs = [ 38 + hypothesis 39 + pytestCheckHook 40 + testtools 41 + ]; 42 + 43 + pythonImportsCheck = [ 44 + "eliot" 45 + ]; 42 46 43 47 # Tests run eliot-prettyprint in out/bin. 44 - # test_parse_stream is broken, skip it. 45 - checkPhase = '' 48 + preCheck = '' 46 49 export PATH=$out/bin:$PATH 47 - pytest -k 'not test_parse_stream' 48 50 ''; 49 51 52 + disabledTests = [ 53 + "test_parse_stream" 54 + # AttributeError: module 'inspect' has no attribute 'getargspec' 55 + "test_default" 56 + ]; 57 + 50 58 meta = with lib; { 51 59 homepage = "https://eliot.readthedocs.io"; 52 60 description = "Logging library that tells you why it happened"; 53 61 license = licenses.asl20; 54 - maintainers = [ maintainers.dpausp ]; 62 + maintainers = with maintainers; [ dpausp ]; 55 63 }; 56 64 }