about summary refs log tree commit diff
path: root/pkgs/development/python-modules/diofant
diff options
context:
space:
mode:
authorСухарик <suhr@i2pmail.org>2019-07-21 21:15:06 +0300
committerworldofpeace <worldofpeace@protonmail.ch>2019-07-29 03:29:27 -0400
commitc32c6d8ec9be632400ae2c415bbad35b09470530 (patch)
tree433be893766cde35b10fb3469e84b714ec78dc2e /pkgs/development/python-modules/diofant
parentb647c76929620538b91d02c5514d5617dddeadd0 (diff)
pythonPackages.diofant: init at 0.10.0
Diffstat (limited to 'pkgs/development/python-modules/diofant')
-rw-r--r--pkgs/development/python-modules/diofant/default.nix44
1 files changed, 44 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/diofant/default.nix b/pkgs/development/python-modules/diofant/default.nix
new file mode 100644
index 0000000000000..c473f2fb4200f
--- /dev/null
+++ b/pkgs/development/python-modules/diofant/default.nix
@@ -0,0 +1,44 @@
+{ lib
+, isPy3k
+, buildPythonPackage
+, fetchPypi
+, pytestrunner
+, setuptools_scm
+, isort
+, mpmath
+, strategies
+}:
+
+buildPythonPackage rec {
+  pname = "diofant";
+  version = "0.10.0";
+
+  src = fetchPypi {
+    inherit version;
+    pname = "Diofant";
+    sha256 = "0qjg0mmz2cqxryr610mppx3virf1gslzrsk24304502588z53v8w";
+  };
+
+  nativeBuildInputs = [
+    isort
+    pytestrunner
+    setuptools_scm
+  ];
+
+  propagatedBuildInputs = [
+    mpmath
+    strategies
+  ];
+
+  # tests take ~1h
+  doCheck = false;
+
+  disabled = !isPy3k;
+
+  meta = with lib; {
+    description = "A Python CAS library";
+    homepage = "https://diofant.readthedocs.io/";
+    license = licenses.bsd3;
+    maintainers = with maintainers; [ suhr ];
+  };
+}