about summary refs log tree commit diff
path: root/pkgs/development/python-modules/odo
diff options
context:
space:
mode:
authorChris Ostrouchov <chris.ostrouchov@gmail.com>2019-07-16 08:00:36 -0400
committerFrederik Rietdijk <freddyrietdijk@fridh.nl>2019-07-17 10:02:03 +0200
commita1fd2125365aee6eeb8c363f59189ac0590e62ec (patch)
tree0ae1d7077031cccfc91610b3becc30cd2a3ca81c /pkgs/development/python-modules/odo
parent124d108d7d81aeb18053bc0315182e7889ee7148 (diff)
pythonPackages.odo: refactor 0.5.1 -> unstable-2019-07-16
Diffstat (limited to 'pkgs/development/python-modules/odo')
-rw-r--r--pkgs/development/python-modules/odo/default.nix44
1 files changed, 29 insertions, 15 deletions
diff --git a/pkgs/development/python-modules/odo/default.nix b/pkgs/development/python-modules/odo/default.nix
index f18420b676b7d..6e82119faa577 100644
--- a/pkgs/development/python-modules/odo/default.nix
+++ b/pkgs/development/python-modules/odo/default.nix
@@ -13,32 +13,46 @@
 
 buildPythonPackage rec {
   pname = "odo";
-  version= "0.5.1";
-
+  version= "unstable-2019-07-16";
 
   src = fetchFromGitHub {
     owner = "blaze";
     repo = pname;
-    rev = version;
-    sha256 = "142f4jvaqjn0dq6rvlk7d7mzcmc255a9z4nxc1b3a862hp4gvijs";
+    rev = "9fce6690b3666160681833540de6c55e922de5eb";
+    sha256 = "0givkd5agr05wrf72fbghdaav6gplx7c069ngs1ip385v72ifsl9";
   };
 
-  checkInputs = [ pytest dask ];
-  propagatedBuildInputs = [ datashape numpy pandas toolz multipledispatch networkx ];
+  checkInputs = [
+    pytest
+    dask
+  ];
+
+  propagatedBuildInputs = [
+    datashape
+    numpy
+    pandas
+    toolz
+    multipledispatch
+    networkx
+  ];
+
+  postConfigure = ''
+    substituteInPlace setup.py \
+      --replace "versioneer.get_version()" "'0.5.1'"
+  '';
 
-  # Disable failing tests
-  # https://github.com/blaze/odo/issues/609
+  # disable 6/315 tests
   checkPhase = ''
-    py.test -k "not test_numpy_asserts_type_after_dataframe" odo/tests
+    pytest odo -k "not test_insert_to_ooc \
+               and not test_datetime_index \
+               and not test_different_encoding \
+               and not test_numpy_asserts_type_after_dataframe"
   '';
 
-  meta = {
+  meta = with lib; {
     homepage = https://github.com/ContinuumIO/odo;
     description = "Data migration utilities";
-    license = lib.licenses.bsdOriginal;
-    maintainers = with lib.maintainers; [ fridh ];
-    # incomaptible with Networkx 2
-    # see https://github.com/blaze/odo/pull/601
-    broken = true;
+    license = licenses.bsdOriginal;
+    maintainers = with maintainers; [ fridh costrouc ];
   };
 }