nixpkgs/pkgs/development/python-modules/periodictable/default.nix
Guillaume Girol 33afbf39f6 treewide: switch to nativeCheckInputs
checkInputs used to be added to nativeBuildInputs. Now we have
nativeCheckInputs to do that instead. Doing this treewide change allows
to keep hashes identical to before the introduction of
nativeCheckInputs.
2023-01-21 12:00:00 +00:00

42 lines
744 B
Nix

{ lib
, fetchPypi
, buildPythonPackage
, numpy
, pyparsing
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "periodictable";
version = "1.6.1";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-fFAcn3PXex+yjLUehbKEKcLESpnOPRJ0iUVkxy1xJgM=";
};
propagatedBuildInputs = [
numpy
pyparsing
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"periodictable"
];
meta = with lib; {
description = "Extensible periodic table of the elements";
homepage = "https://github.com/pkienzle/periodictable";
license = licenses.publicDomain;
maintainers = with maintainers; [ rprospero ];
};
}