depot/third_party/nixpkgs/pkgs/development/python-modules/periodictable/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

38 lines
741 B
Nix

{
lib,
fetchPypi,
buildPythonPackage,
numpy,
pyparsing,
pytestCheckHook,
pythonOlder,
}:
buildPythonPackage rec {
pname = "periodictable";
version = "1.7.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-Qg5XwrGdalIbHAteOH2lkKMahFbkzBwAvKXOLcXwXqk=";
};
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 ];
};
}