Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09 1.0 kB view raw
1{ buildPythonPackage 2, fetchPypi 3, pythonOlder 4, h5py 5, numpy 6, dill 7, astropy 8, scipy 9, pandas 10, codecov 11, pytest 12, pytestcov 13, pytestrunner 14, coveralls 15, twine 16, check-manifest 17, lib 18}: 19 20buildPythonPackage rec { 21 pname = "hickle"; 22 version = "4.0.1"; 23 disabled = pythonOlder "3.5"; 24 25 src = fetchPypi { 26 inherit pname version; 27 sha256 = "fcf2c4f9e4b7f0d9dae7aa6c59a58473884017875d3b17898d56eaf8a9c1da96"; 28 }; 29 30 postPatch = '' 31 substituteInPlace requirements_test.txt \ 32 --replace 'astropy<3.1;' 'astropy;' --replace 'astropy<3.0;' 'astropy;' 33 ''; 34 35 propagatedBuildInputs = [ h5py numpy dill ]; 36 37 doCheck = false; # incompatible with latest astropy 38 checkInputs = [ 39 pytest pytestcov pytestrunner coveralls scipy pandas astropy twine check-manifest codecov 40 ]; 41 42 pythonImportsCheck = [ "hickle" ]; 43 44 meta = { 45 description = "Serialize Python data to HDF5"; 46 homepage = "https://github.com/telegraphic/hickle"; 47 license = lib.licenses.mit; 48 maintainers = with lib.maintainers; [ bcdarwin ]; 49 }; 50}