From 931f47304f65e6be1c2b9ad140eb97ae7fb541b5 Mon Sep 17 00:00:00 2001 From: Ben Darwin Date: Tue, 28 Jan 2020 16:48:15 -0500 Subject: [PATCH] python3Packages.hickle: init at 3.4.5 --- .../python-modules/hickle/default.nix | 39 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 41 insertions(+) create mode 100644 pkgs/development/python-modules/hickle/default.nix diff --git a/pkgs/development/python-modules/hickle/default.nix b/pkgs/development/python-modules/hickle/default.nix new file mode 100644 index 00000000000..8d45970294c --- /dev/null +++ b/pkgs/development/python-modules/hickle/default.nix @@ -0,0 +1,39 @@ +{ buildPythonPackage +, fetchPypi +, h5py +, numpy +, dill +, astropy +, scipy +, pandas +, pytest +, pytestcov +, pytestrunner +, coveralls +, lib +}: + +buildPythonPackage rec { + pname = "hickle"; + version = "3.4.5"; + + src = fetchPypi { + inherit pname version; + sha256 = "1d1qj3yl7635lgkqacz9r8fyhv71396l748ww4wy05ibpignjm2x"; + }; + + postPatch = '' + substituteInPlace requirements_test.txt \ + --replace 'astropy<3.1;' 'astropy;' --replace 'astropy<3.0;' 'astropy;' + ''; + + propagatedBuildInputs = [ h5py numpy dill ]; + checkInputs = [ pytest pytestcov pytestrunner coveralls scipy pandas astropy ]; + + meta = { + description = "Serialize Python data to HDF5"; + homepage = "https://github.com/telegraphic/hickle"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ bcdarwin ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 3adaab1c33f..46e5fc00b44 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2750,6 +2750,8 @@ in { hbmqtt = callPackage ../development/python-modules/hbmqtt { }; + hickle = callPackage ../development/python-modules/hickle { }; + hiro = callPackage ../development/python-modules/hiro {}; hglib = callPackage ../development/python-modules/hglib {};