about summary refs log tree commit diff
path: root/pkgs/development/python-modules
diff options
context:
space:
mode:
authorBen Darwin <bcdarwin@gmail.com>2020-03-23 18:44:12 -0400
committerFrederik Rietdijk <freddyrietdijk@fridh.nl>2020-05-08 07:43:25 +0200
commit7ecde8b92b8e49e6022e3ab396880e191e6ffdc1 (patch)
tree6bb3099b3d63daf9cc8c87ce5be7d4e6c4d23acb /pkgs/development/python-modules
parent7397d8421e9bce19f5d4ee02f672ed8ca72e4211 (diff)
downloadnixlib-7ecde8b92b8e49e6022e3ab396880e191e6ffdc1.tar
nixlib-7ecde8b92b8e49e6022e3ab396880e191e6ffdc1.tar.gz
nixlib-7ecde8b92b8e49e6022e3ab396880e191e6ffdc1.tar.bz2
nixlib-7ecde8b92b8e49e6022e3ab396880e191e6ffdc1.tar.lz
nixlib-7ecde8b92b8e49e6022e3ab396880e191e6ffdc1.tar.xz
nixlib-7ecde8b92b8e49e6022e3ab396880e191e6ffdc1.tar.zst
nixlib-7ecde8b92b8e49e6022e3ab396880e191e6ffdc1.zip
python3Packages.traittypes: init at unstable-2019-06-23
Diffstat (limited to 'pkgs/development/python-modules')
-rw-r--r--pkgs/development/python-modules/traittypes/default.nix47
1 files changed, 47 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/traittypes/default.nix b/pkgs/development/python-modules/traittypes/default.nix
new file mode 100644
index 000000000000..9814f740ebc4
--- /dev/null
+++ b/pkgs/development/python-modules/traittypes/default.nix
@@ -0,0 +1,47 @@
+{ stdenv
+, buildPythonPackage
+, fetchFromGitHub
+, fetchpatch
+, isPy27
+, pytest
+, nose
+, numpy
+, scipy
+, pandas
+, xarray
+, traitlets
+}:
+
+buildPythonPackage rec {
+  pname = "traittypes";
+  version = "unstable-2019-06-23";
+
+  disabled = isPy27;
+
+  src = fetchFromGitHub {
+    owner = "jupyter-widgets";
+    repo = pname;
+    rev = "0a030b928991dec732c17a7a1cb13acbcd7650a2";
+    sha256 = "0rlm5krmq6n8yi47dgdsjyrkz3m079pndpbzkz2gx98pb3jd9pjs";
+  };
+
+  patches = [
+    (fetchpatch {
+       name = "fix-intarray-test.patch";
+       url = "https://github.com/minrk/traittypes/commit/a02441e5b259e5858453a853207260c9bd4efbb5.patch";
+       sha256 = "120dsvr5nksizw75z1ah3h38mi399fxbvz5anakica557jahi0aw";
+    })
+  ];
+
+  propagatedBuildInputs = [ traitlets ];
+
+  checkInputs = [ numpy pandas xarray nose pytest ];
+
+  meta = with stdenv.lib; {
+    description = "Trait types for NumPy, SciPy, XArray, and Pandas";
+    homepage = "https://github.com/jupyter-widgets/traittypes";
+    license = licenses.bsd3;
+    maintainers = with maintainers; [ bcdarwin ];
+  };
+
+}