blob: f41e815a6f21d8a518d74f7b1cc889f41902010f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
{
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/${lib.removePrefix "refs/tags/" src.rev}";
license = licenses.bsd3;
maintainers = with maintainers; [ mbalatsko ];
};
}
|