lol

python310Packages.effect: fix build

- add changelog to meta
- disable on older Python releases
- add pythonImportsCheck

+29 -17
+29 -17
pkgs/development/python-modules/effect/default.nix
··· 1 - { buildPythonPackage 1 + { lib 2 + , attrs 3 + , buildPythonPackage 2 4 , fetchPypi 3 - , lib 4 - , isPy3k 5 + , pytestCheckHook 6 + , pythonOlder 5 7 , six 6 - , attrs 7 - , pytest 8 8 , testtools 9 9 }: 10 10 11 11 buildPythonPackage rec { 12 + pname = "effect"; 12 13 version = "1.1.0"; 13 - pname = "effect"; 14 - disabled = (!isPy3k); 14 + format = "setuptools"; 15 + 16 + disabled = pythonOlder "3.7"; 15 17 16 18 src = fetchPypi { 17 19 inherit pname version; 18 - sha256 = "7affb603707c648b07b11781ebb793a4b9aee8acf1ac5764c3ed2112adf0c9ea"; 20 + hash = "sha256-ev+2A3B8ZIsHsReB67eTpLmu6KzxrFdkw+0hEq3wyeo="; 19 21 }; 20 22 21 - nativeCheckInputs = [ 22 - pytest 23 - testtools 24 - ]; 23 + postPatch = '' 24 + substituteInPlace effect/test_do.py \ 25 + --replace "py.test" "pytest" 26 + ''; 25 27 26 28 propagatedBuildInputs = [ 29 + attrs 27 30 six 28 - attrs 31 + ]; 32 + 33 + nativeCheckInputs = [ 34 + pytestCheckHook 35 + ]; 36 + 37 + checkInputs = [ 38 + testtools 29 39 ]; 30 40 31 - checkPhase = '' 32 - pytest 33 - ''; 41 + pythonImportsCheck = [ 42 + "effect" 43 + ]; 34 44 35 45 meta = with lib; { 36 46 description = "Pure effects for Python"; 37 - homepage = "https://github.com/python-effect/effect"; 47 + homepage = "https://effect.readthedocs.io/"; 48 + changelog = "https://github.com/python-effect/effect/releases/tag/${version}"; 38 49 license = licenses.mit; 50 + maintainers = with maintainers; [ ]; 39 51 }; 40 52 }