From 0cf2c6fcfe2055a255b0f20eb122ebecc68dbf4a Mon Sep 17 00:00:00 2001 From: Chris Ostrouchov Date: Wed, 10 Oct 2018 18:13:07 -0400 Subject: [PATCH 1/3] pythonPackages.numericalunits: init at 1.16 --- .../python-modules/numericalunits/default.nix | 24 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 26 insertions(+) create mode 100644 pkgs/development/python-modules/numericalunits/default.nix diff --git a/pkgs/development/python-modules/numericalunits/default.nix b/pkgs/development/python-modules/numericalunits/default.nix new file mode 100644 index 00000000000..1212bf0039c --- /dev/null +++ b/pkgs/development/python-modules/numericalunits/default.nix @@ -0,0 +1,24 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +}: + +buildPythonPackage rec { + version = "1.16"; + pname = "numericalunits"; + + src = fetchPypi { + inherit pname version; + sha256 = "71ae8e236c7a223bccefffb670dca68be476dd63b7b9009641fc64099455da25"; + }; + + # no tests + doCheck = false; + + meta = with stdenv.lib; { + homepage = http://pypi.python.org/pypi/numericalunits; + description = "A package that lets you define quantities with unit"; + license = licenses.mit; + maintainers = [ maintainers.costrouc ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index b2cff4940c1..c292c06fc3a 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -428,6 +428,8 @@ in { nvchecker = callPackage ../development/python-modules/nvchecker { }; + numericalunits = callPackage ../development/python-modules/numericalunits { }; + oauthenticator = callPackage ../development/python-modules/oauthenticator { }; ordered-set = callPackage ../development/python-modules/ordered-set { }; From 7dd7190a576bdb8c5f504370f0ea0c3160562e59 Mon Sep 17 00:00:00 2001 From: Chris Ostrouchov Date: Wed, 10 Oct 2018 18:13:36 -0400 Subject: [PATCH 2/3] pythonPackages.DataModelDict: init at 0.9.4 --- .../python-modules/datamodeldict/default.nix | 27 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 29 insertions(+) create mode 100644 pkgs/development/python-modules/datamodeldict/default.nix diff --git a/pkgs/development/python-modules/datamodeldict/default.nix b/pkgs/development/python-modules/datamodeldict/default.nix new file mode 100644 index 00000000000..9aac803ccae --- /dev/null +++ b/pkgs/development/python-modules/datamodeldict/default.nix @@ -0,0 +1,27 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +, xmltodict +}: + +buildPythonPackage rec { + version = "0.9.4"; + pname = "DataModelDict"; + + src = fetchPypi { + inherit pname version; + sha256 = "97d8e999e000cf69c48e57b1a72eb45a27d83576a38c6cd8550c230b018be7af"; + }; + + propagatedBuildInputs = [ xmltodict ]; + + # no tests + doCheck = false; + + meta = with stdenv.lib; { + homepage = https://github.com/usnistgov/DataModelDict/; + description = "Class allowing for data models equivalently represented as Python dictionaries, JSON, and XML"; + license = licenses.mit; + maintainers = [ maintainers.costrouc ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index c292c06fc3a..dcddc42d177 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -284,6 +284,8 @@ in { btchip = callPackage ../development/python-modules/btchip { }; + datamodeldict = callPackage ../development/python-modules/datamodeldict { }; + dbf = callPackage ../development/python-modules/dbf { }; dbfread = callPackage ../development/python-modules/dbfread { }; From 1ac9d8ea407dc7262cdb5acdf290bd3a26f536c8 Mon Sep 17 00:00:00 2001 From: Chris Ostrouchov Date: Wed, 10 Oct 2018 18:13:56 -0400 Subject: [PATCH 3/3] pythonPackages.atomman: init at 1.2.3 --- .../python-modules/atomman/default.nix | 40 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 42 insertions(+) create mode 100644 pkgs/development/python-modules/atomman/default.nix diff --git a/pkgs/development/python-modules/atomman/default.nix b/pkgs/development/python-modules/atomman/default.nix new file mode 100644 index 00000000000..ce4408b8441 --- /dev/null +++ b/pkgs/development/python-modules/atomman/default.nix @@ -0,0 +1,40 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +, xmltodict +, datamodeldict +, numpy +, matplotlib +, scipy +, pandas +, cython +, numericalunits +, pytest +}: + +buildPythonPackage rec { + version = "1.2.3"; + pname = "atomman"; + + src = fetchPypi { + inherit pname version; + sha256 = "9eb6acc5497263cfa89be8d0f383a9a69f0726b4ac6798c1b1d96f26705ec09c"; + }; + + checkInputs = [ pytest ]; + propagatedBuildInputs = [ xmltodict datamodeldict numpy matplotlib scipy pandas cython numericalunits ]; + + # tests not included with Pypi release + doCheck = false; + + checkPhase = '' + py.test tests + ''; + + meta = with stdenv.lib; { + homepage = https://github.com/usnistgov/atomman/; + description = "Atomistic Manipulation Toolkit"; + license = licenses.mit; + maintainers = [ maintainers.costrouc ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index dcddc42d177..70335098c2e 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -212,6 +212,8 @@ in { aws-adfs = callPackage ../development/python-modules/aws-adfs { }; + atomman = callPackage ../development/python-modules/atomman { }; + # packages defined elsewhere amazon_kclpy = callPackage ../development/python-modules/amazon_kclpy { };