Files
nixpkgs/pkgs/development/python-modules/periodictable/default.nix
2025-01-10 23:03:43 +09:00

48 lines
892 B
Nix

{
lib,
fetchFromGitHub,
buildPythonPackage,
setuptools,
numpy,
pyparsing,
pytest-cov-stub,
pytestCheckHook,
pythonOlder,
}:
buildPythonPackage rec {
pname = "periodictable";
version = "2.0.2";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "python-periodictable";
repo = "periodictable";
tag = "v${version}";
hash = "sha256-nI6hiLnqmVXT06pPkHCBEMTxZhfnZJqSImW3V9mJ4+8=";
};
build-system = [ setuptools ];
dependencies = [
numpy
pyparsing
];
nativeCheckInputs = [
pytest-cov-stub
pytestCheckHook
];
pythonImportsCheck = [ "periodictable" ];
meta = {
description = "Extensible periodic table of the elements";
homepage = "https://github.com/pkienzle/periodictable";
license = lib.licenses.publicDomain;
maintainers = with lib.maintainers; [ rprospero ];
};
}