lol

python312Packages.colormath: refactor

- switch to pytestCheckHook
- update version
- update build-system

+23 -9
+23 -9
pkgs/development/python-modules/colormath/default.nix
··· 1 - { buildPythonPackage 1 + { lib 2 + , buildPythonPackage 2 3 , fetchFromGitHub 3 4 , networkx 4 - , nose 5 5 , numpy 6 - , lib 6 + , pytestCheckHook 7 + , pythonOlder 8 + , setuptools 7 9 }: 8 10 9 11 buildPythonPackage rec { ··· 11 13 # Switch to unstable which fixes an deprecation issue with newer numpy 12 14 # versions, should be included in versions > 3.0 13 15 # https://github.com/gtaylor/python-colormath/issues/104 14 - version = "unstable-2021-04-17"; 15 - format = "setuptools"; 16 + version = "3.0.0-unstable-2021-04-17"; 17 + pyproject = true; 18 + 19 + disabled = pythonOlder "3.7"; 16 20 17 21 src = fetchFromGitHub { 18 22 owner = "gtaylor"; ··· 21 25 hash = "sha256-eACVPIQFgiGiVmQ/PjUxP/UH/hBOsCywz5PlgpA4dk4="; 22 26 }; 23 27 24 - propagatedBuildInputs = [ networkx numpy ]; 28 + build-system = [ 29 + setuptools 30 + ]; 25 31 26 - nativeCheckInputs = [ nose ]; 32 + dependencies = [ 33 + networkx 34 + numpy 35 + ]; 27 36 28 - checkPhase = "nosetests"; 37 + nativeCheckInputs = [ 38 + pytestCheckHook 39 + ]; 29 40 30 - pythonImportsCheck = [ "colormath" ]; 41 + pythonImportsCheck = [ 42 + "colormath" 43 + ]; 31 44 32 45 meta = with lib; { 33 46 description = "Color math and conversion library"; 34 47 homepage = "https://github.com/gtaylor/python-colormath"; 48 + changelog = "https://github.com/gtaylor/python-colormath/releases/tag/${version}"; 35 49 license = licenses.bsd2; 36 50 maintainers = with maintainers; [ jonathanreeve ]; 37 51 };