summary refs log tree commit diff
path: root/pkgs/development/python-modules
diff options
context:
space:
mode:
authorRobert Schütz <rschuetz17@gmail.com>2018-10-31 17:23:30 +0100
committerGitHub <noreply@github.com>2018-10-31 17:23:30 +0100
commite0772e6ef81a0f0f478f42d0b4bc055abe1bfffc (patch)
treeb3c8b03624c2b78b5a2e544537f68d79767268ce /pkgs/development/python-modules
parent553e0d81ee263d35e761987c92b6fb8e289ca32f (diff)
parent1ac9d8ea407dc7262cdb5acdf290bd3a26f536c8 (diff)
downloadnixlib-e0772e6ef81a0f0f478f42d0b4bc055abe1bfffc.tar
nixlib-e0772e6ef81a0f0f478f42d0b4bc055abe1bfffc.tar.gz
nixlib-e0772e6ef81a0f0f478f42d0b4bc055abe1bfffc.tar.bz2
nixlib-e0772e6ef81a0f0f478f42d0b4bc055abe1bfffc.tar.lz
nixlib-e0772e6ef81a0f0f478f42d0b4bc055abe1bfffc.tar.xz
nixlib-e0772e6ef81a0f0f478f42d0b4bc055abe1bfffc.tar.zst
nixlib-e0772e6ef81a0f0f478f42d0b4bc055abe1bfffc.zip
Merge pull request #48183 from costrouc/costrouc/python-atomman
pythonPackages.atomman: init at 1.2.3
Diffstat (limited to 'pkgs/development/python-modules')
-rw-r--r--pkgs/development/python-modules/atomman/default.nix40
-rw-r--r--pkgs/development/python-modules/datamodeldict/default.nix27
-rw-r--r--pkgs/development/python-modules/numericalunits/default.nix24
3 files changed, 91 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/atomman/default.nix b/pkgs/development/python-modules/atomman/default.nix
new file mode 100644
index 000000000000..ce4408b84412
--- /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/development/python-modules/datamodeldict/default.nix b/pkgs/development/python-modules/datamodeldict/default.nix
new file mode 100644
index 000000000000..9aac803ccae1
--- /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/development/python-modules/numericalunits/default.nix b/pkgs/development/python-modules/numericalunits/default.nix
new file mode 100644
index 000000000000..1212bf0039c9
--- /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 ];
+  };
+}