nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix

python312Packages.periodictable: refactor

+14 -7
+14 -7
pkgs/development/python-modules/periodictable/default.nix
··· 2 2 lib, 3 3 fetchFromGitHub, 4 4 buildPythonPackage, 5 + setuptools, 5 6 numpy, 6 7 pyparsing, 8 + pytest-cov-stub, 7 9 pytestCheckHook, 8 10 pythonOlder, 9 11 }: ··· 13 11 buildPythonPackage rec { 14 12 pname = "periodictable"; 15 13 version = "2.0.2"; 16 - format = "setuptools"; 14 + pyproject = true; 17 15 18 - disabled = pythonOlder "3.7"; 16 + disabled = pythonOlder "3.8"; 19 17 20 18 src = fetchFromGitHub { 21 19 owner = "python-periodictable"; ··· 24 22 hash = "sha256-nI6hiLnqmVXT06pPkHCBEMTxZhfnZJqSImW3V9mJ4+8="; 25 23 }; 26 24 27 - propagatedBuildInputs = [ 25 + build-system = [ setuptools ]; 26 + 27 + dependencies = [ 28 28 numpy 29 29 pyparsing 30 30 ]; 31 31 32 - nativeCheckInputs = [ pytestCheckHook ]; 32 + nativeCheckInputs = [ 33 + pytest-cov-stub 34 + pytestCheckHook 35 + ]; 33 36 34 37 pythonImportsCheck = [ "periodictable" ]; 35 38 36 - meta = with lib; { 39 + meta = { 37 40 description = "Extensible periodic table of the elements"; 38 41 homepage = "https://github.com/pkienzle/periodictable"; 39 - license = licenses.publicDomain; 40 - maintainers = with maintainers; [ rprospero ]; 42 + license = lib.licenses.publicDomain; 43 + maintainers = with lib.maintainers; [ rprospero ]; 41 44 }; 42 45 }