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

41 lines
846 B
Nix
Raw Normal View History

2017-10-29 12:20:02 +00:00
{ lib
, buildPythonPackage
2018-03-10 11:36:11 +00:00
, fetchFromGitHub
2017-10-29 12:20:02 +00:00
, pytest
, datashape
, numpy
, pandas
, toolz
, multipledispatch
, networkx
2018-03-10 11:36:11 +00:00
, dask
2017-10-29 12:20:02 +00:00
}:
buildPythonPackage rec {
pname = "odo";
2018-03-10 11:36:11 +00:00
version= "0.5.1";
2017-10-29 12:20:02 +00:00
2018-03-10 11:36:11 +00:00
src = fetchFromGitHub {
owner = "blaze";
repo = pname;
rev = version;
sha256 = "142f4jvaqjn0dq6rvlk7d7mzcmc255a9z4nxc1b3a862hp4gvijs";
2017-10-29 12:20:02 +00:00
};
2018-03-10 11:36:11 +00:00
checkInputs = [ pytest dask ];
2017-10-29 12:20:02 +00:00
propagatedBuildInputs = [ datashape numpy pandas toolz multipledispatch networkx ];
2018-03-10 11:36:11 +00:00
# Disable failing tests
# https://github.com/blaze/odo/issues/609
2017-10-29 12:20:02 +00:00
checkPhase = ''
2018-03-10 11:36:11 +00:00
py.test -k "not test_numpy_asserts_type_after_dataframe" odo/tests
2017-10-29 12:20:02 +00:00
'';
meta = {
homepage = https://github.com/ContinuumIO/odo;
description = "Data migration utilities";
license = lib.licenses.bsdOriginal;
maintainers = with lib.maintainers; [ fridh ];
};
}