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