python3Packages.h5io: init at 0.2.1
This commit is contained in:
parent
f35e0b7d21
commit
24e043c62b
52
pkgs/development/python-modules/h5io/default.nix
Normal file
52
pkgs/development/python-modules/h5io/default.nix
Normal file
@ -0,0 +1,52 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pythonOlder
|
||||
, setuptools
|
||||
, numpy
|
||||
, h5py
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "h5io";
|
||||
version = "0.2.1";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "h5io";
|
||||
repo = "h5io";
|
||||
rev = "refs/tags/h5io-${version}";
|
||||
hash = "sha256-3mrHIkfaXq06mMzUwudRO81DWTk0TO/e15IQA5fxxNc=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace pyproject.toml \
|
||||
--replace "--cov-report=" "" \
|
||||
--replace "--cov-branch" "" \
|
||||
--replace "--cov=h5io" ""
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ setuptools ];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
numpy
|
||||
h5py
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "h5io" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Read and write simple Python objects using HDF5";
|
||||
homepage = "https://github.com/h5io/h5io";
|
||||
changelog = "https://github.com/h5io/h5io/releases/tag/${src.rev}";
|
||||
license = licenses.bsd3;
|
||||
maintainers = with maintainers; [ mbalatsko ];
|
||||
};
|
||||
}
|
||||
@ -5037,6 +5037,8 @@ self: super: with self; {
|
||||
inherit (pkgs) h3;
|
||||
};
|
||||
|
||||
h5io = callPackage ../development/python-modules/h5io { };
|
||||
|
||||
h5netcdf = callPackage ../development/python-modules/h5netcdf { };
|
||||
|
||||
h5py = callPackage ../development/python-modules/h5py { };
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user