Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.09 70 lines 1.4 kB view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, appdirs 5, dask 6, holoviews 7, hvplot 8, jinja2 9, msgpack-numpy 10, msgpack 11, numpy 12, pandas 13, panel 14, python-snappy 15, requests 16, ruamel_yaml 17, six 18, tornado 19, pytest 20, pythonOlder 21}: 22 23buildPythonPackage rec { 24 pname = "intake"; 25 version = "0.5.3"; 26 27 disabled = pythonOlder "3.6"; 28 29 src = fetchPypi { 30 inherit pname version; 31 sha256 = "1mbjr4xl4i523bg8k08s5986v2289fznd8cr3j3czn5adi8519j7"; 32 }; 33 34 checkInputs = [ pytest ]; 35 propagatedBuildInputs = [ 36 appdirs 37 dask 38 holoviews 39 hvplot 40 jinja2 41 msgpack-numpy 42 msgpack 43 numpy 44 pandas 45 panel 46 python-snappy 47 requests 48 ruamel_yaml 49 six 50 tornado 51 ]; 52 53 postPatch = '' 54 # Is in setup_requires but not used in setup.py... 55 substituteInPlace setup.py --replace "'pytest-runner'" "" 56 ''; 57 58 # test_discover requires driver_with_entrypoints-0.1.dist-info, which is not included in tarball 59 # test_filtered_compressed_cache requires calvert_uk_filter.tar.gz, which is not included in tarball 60 checkPhase = '' 61 PATH=$out/bin:$PATH HOME=$(mktemp -d) pytest -k "not test_discover and not test_filtered_compressed_cache" 62 ''; 63 64 meta = with lib; { 65 description = "Data load and catalog system"; 66 homepage = https://github.com/ContinuumIO/intake; 67 license = licenses.bsd2; 68 maintainers = [ maintainers.costrouc ]; 69 }; 70}