f34ce41345
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
38 lines
741 B
Nix
38 lines
741 B
Nix
{
|
|
lib,
|
|
fetchPypi,
|
|
buildPythonPackage,
|
|
numpy,
|
|
pyparsing,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "periodictable";
|
|
version = "1.7.1";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-Q9fbcjPWszli+D156lT0fDuSPT6DQDy8A/WPNTr0tSw=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|