1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/python-modules/intake/default.nix

71 lines
1.4 KiB
Nix
Raw Normal View History

2019-02-24 15:23:55 +00:00
{ lib
, buildPythonPackage
, fetchPypi
, appdirs
, dask
, holoviews
2019-09-01 07:32:43 +01:00
, hvplot
2019-02-24 15:23:55 +00:00
, jinja2
, msgpack-numpy
, msgpack
2019-02-24 15:23:55 +00:00
, numpy
, pandas
2019-09-01 07:32:43 +01:00
, panel
2019-02-24 15:23:55 +00:00
, python-snappy
, requests
, ruamel_yaml
, six
, tornado
, pytest
2019-09-01 07:32:43 +01:00
, pythonOlder
2019-02-24 15:23:55 +00:00
}:
buildPythonPackage rec {
pname = "intake";
2019-12-19 19:31:13 +00:00
version = "0.5.4";
2019-09-01 07:32:43 +01:00
disabled = pythonOlder "3.6";
2019-02-24 15:23:55 +00:00
src = fetchPypi {
inherit pname version;
2019-12-19 19:31:13 +00:00
sha256 = "81c3bdadbb81ec10c923b89e118c229d977a584ccbe27466f8fde41c0c274c3f";
2019-02-24 15:23:55 +00:00
};
checkInputs = [ pytest ];
propagatedBuildInputs = [
appdirs
dask
holoviews
2019-09-01 07:32:43 +01:00
hvplot
2019-02-24 15:23:55 +00:00
jinja2
msgpack-numpy
msgpack
2019-02-24 15:23:55 +00:00
numpy
pandas
2019-09-01 07:32:43 +01:00
panel
2019-02-24 15:23:55 +00:00
python-snappy
requests
ruamel_yaml
six
tornado
];
2019-09-01 07:32:43 +01:00
postPatch = ''
# Is in setup_requires but not used in setup.py...
substituteInPlace setup.py --replace "'pytest-runner'" ""
'';
# test_discover requires driver_with_entrypoints-0.1.dist-info, which is not included in tarball
# test_filtered_compressed_cache requires calvert_uk_filter.tar.gz, which is not included in tarball
2019-02-24 15:23:55 +00:00
checkPhase = ''
2019-09-01 07:32:43 +01:00
PATH=$out/bin:$PATH HOME=$(mktemp -d) pytest -k "not test_discover and not test_filtered_compressed_cache"
2019-02-24 15:23:55 +00:00
'';
meta = with lib; {
description = "Data load and catalog system";
homepage = https://github.com/ContinuumIO/intake;
license = licenses.bsd2;
maintainers = [ maintainers.costrouc ];
};
}