nixpkgs-suyu/pkgs/development/python-modules/odo/default.nix

45 lines
949 B
Nix
Raw Normal View History

2017-10-29 13:20:02 +01:00
{ lib
, buildPythonPackage
2018-03-10 12:36:11 +01:00
, fetchFromGitHub
2017-10-29 13:20:02 +01:00
, pytest
, datashape
, numpy
, pandas
, toolz
, multipledispatch
, networkx
2018-03-10 12:36:11 +01:00
, dask
2017-10-29 13:20:02 +01:00
}:
buildPythonPackage rec {
pname = "odo";
2018-03-10 12:36:11 +01:00
version= "0.5.1";
2017-10-29 13:20:02 +01:00
2018-03-10 12:36:11 +01:00
src = fetchFromGitHub {
owner = "blaze";
repo = pname;
rev = version;
sha256 = "142f4jvaqjn0dq6rvlk7d7mzcmc255a9z4nxc1b3a862hp4gvijs";
2017-10-29 13:20:02 +01:00
};
2018-03-10 12:36:11 +01:00
checkInputs = [ pytest dask ];
2017-10-29 13:20:02 +01:00
propagatedBuildInputs = [ datashape numpy pandas toolz multipledispatch networkx ];
2018-03-10 12:36:11 +01:00
# Disable failing tests
# https://github.com/blaze/odo/issues/609
2017-10-29 13:20:02 +01:00
checkPhase = ''
2018-03-10 12:36:11 +01:00
py.test -k "not test_numpy_asserts_type_after_dataframe" odo/tests
2017-10-29 13:20:02 +01:00
'';
meta = {
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;
2017-10-29 13:20:02 +01:00
};
}