mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
python3Packages.h5io: 0.2.1 -> 0.2.5 (#403731)
This commit is contained in:
commit
4a5c0ae90a
1 changed files with 28 additions and 14 deletions
|
@ -2,25 +2,30 @@
|
||||||
lib,
|
lib,
|
||||||
buildPythonPackage,
|
buildPythonPackage,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
pythonOlder,
|
|
||||||
setuptools,
|
# build-system
|
||||||
numpy,
|
setuptools-scm,
|
||||||
|
|
||||||
|
# dependencies
|
||||||
h5py,
|
h5py,
|
||||||
|
numpy,
|
||||||
|
|
||||||
|
# tests
|
||||||
pytestCheckHook,
|
pytestCheckHook,
|
||||||
|
scipy,
|
||||||
|
tables,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "h5io";
|
pname = "h5io";
|
||||||
version = "0.2.1";
|
version = "0.2.5";
|
||||||
pyproject = true;
|
pyproject = true;
|
||||||
|
|
||||||
disabled = pythonOlder "3.7";
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "h5io";
|
owner = "h5io";
|
||||||
repo = "h5io";
|
repo = "h5io";
|
||||||
tag = "h5io-${version}";
|
tag = "h5io-${version}";
|
||||||
hash = "sha256-3mrHIkfaXq06mMzUwudRO81DWTk0TO/e15IQA5fxxNc=";
|
hash = "sha256-ZkG9e7KtDvoRq9XCExYseE+Z7tMQTWcSiwsSrN5prdI=";
|
||||||
};
|
};
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
|
@ -30,22 +35,31 @@ buildPythonPackage rec {
|
||||||
--replace "--cov=h5io" ""
|
--replace "--cov=h5io" ""
|
||||||
'';
|
'';
|
||||||
|
|
||||||
nativeBuildInputs = [ setuptools ];
|
build-system = [ setuptools-scm ];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
dependencies = [
|
||||||
numpy
|
|
||||||
h5py
|
h5py
|
||||||
|
numpy
|
||||||
];
|
];
|
||||||
|
|
||||||
nativeCheckInputs = [ pytestCheckHook ];
|
nativeCheckInputs = [
|
||||||
|
pytestCheckHook
|
||||||
|
scipy
|
||||||
|
tables
|
||||||
|
];
|
||||||
|
|
||||||
|
disabledTests = [
|
||||||
|
# See https://github.com/h5io/h5io/issues/86
|
||||||
|
"test_state_with_pathlib"
|
||||||
|
];
|
||||||
|
|
||||||
pythonImportsCheck = [ "h5io" ];
|
pythonImportsCheck = [ "h5io" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = {
|
||||||
description = "Read and write simple Python objects using HDF5";
|
description = "Read and write simple Python objects using HDF5";
|
||||||
homepage = "https://github.com/h5io/h5io";
|
homepage = "https://github.com/h5io/h5io";
|
||||||
changelog = "https://github.com/h5io/h5io/releases/tag/h5io-${version}";
|
changelog = "https://github.com/h5io/h5io/releases/tag/h5io-${version}";
|
||||||
license = licenses.bsd3;
|
license = lib.licenses.bsd3;
|
||||||
maintainers = with maintainers; [ mbalatsko ];
|
maintainers = with lib.maintainers; [ mbalatsko ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue