1{ 2 lib, 3 fetchPypi, 4 buildPythonPackage, 5 numpy, 6 pyparsing, 7 pytestCheckHook, 8 pythonOlder, 9}: 10 11buildPythonPackage rec { 12 pname = "periodictable"; 13 version = "1.7.0"; 14 format = "setuptools"; 15 16 disabled = pythonOlder "3.7"; 17 18 src = fetchPypi { 19 inherit pname version; 20 hash = "sha256-Qg5XwrGdalIbHAteOH2lkKMahFbkzBwAvKXOLcXwXqk="; 21 }; 22 23 propagatedBuildInputs = [ 24 numpy 25 pyparsing 26 ]; 27 28 nativeCheckInputs = [ pytestCheckHook ]; 29 30 pythonImportsCheck = [ "periodictable" ]; 31 32 meta = with lib; { 33 description = "Extensible periodic table of the elements"; 34 homepage = "https://github.com/pkienzle/periodictable"; 35 license = licenses.publicDomain; 36 maintainers = with maintainers; [ rprospero ]; 37 }; 38}