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