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

60 lines
1.2 KiB
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";
version= "unstable-2018-09-21";
2018-03-10 11:36:11 +00:00
src = fetchFromGitHub {
owner = "blaze";
repo = pname;
rev = "9fce6690b3666160681833540de6c55e922de5eb";
sha256 = "0givkd5agr05wrf72fbghdaav6gplx7c069ngs1ip385v72ifsl9";
2017-10-29 12:20:02 +00:00
};
checkInputs = [
pytest
dask
];
propagatedBuildInputs = [
datashape
numpy
pandas
toolz
multipledispatch
networkx
];
postConfigure = ''
substituteInPlace setup.py \
--replace "versioneer.get_version()" "'0.5.1'"
'';
2017-10-29 12:20:02 +00:00
# disable 6/315 tests
2017-10-29 12:20:02 +00:00
checkPhase = ''
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"
2017-10-29 12:20:02 +00:00
'';
meta = with lib; {
homepage = "https://github.com/ContinuumIO/odo";
2017-10-29 12:20:02 +00:00
description = "Data migration utilities";
license = licenses.bsdOriginal;
maintainers = with maintainers; [ fridh costrouc ];
broken = true; # no longer compatible with dask>=2.0
2017-10-29 12:20:02 +00:00
};
}