From 640193fbb308025f906fc0e19343e16fd6d0dd80 Mon Sep 17 00:00:00 2001 From: Sarah Clark Date: Fri, 2 May 2025 13:05:00 -0700 Subject: [PATCH] python3Packages.h5io: 0.2.1 -> 0.2.5 --- .../python-modules/h5io/default.nix | 42 ++++++++++++------- 1 file changed, 28 insertions(+), 14 deletions(-) diff --git a/pkgs/development/python-modules/h5io/default.nix b/pkgs/development/python-modules/h5io/default.nix index 5d27c615d4f4..8b17e173d80e 100644 --- a/pkgs/development/python-modules/h5io/default.nix +++ b/pkgs/development/python-modules/h5io/default.nix @@ -2,25 +2,30 @@ lib, buildPythonPackage, fetchFromGitHub, - pythonOlder, - setuptools, - numpy, + + # build-system + setuptools-scm, + + # dependencies h5py, + numpy, + + # tests pytestCheckHook, + scipy, + tables, }: buildPythonPackage rec { pname = "h5io"; - version = "0.2.1"; + version = "0.2.5"; pyproject = true; - disabled = pythonOlder "3.7"; - src = fetchFromGitHub { owner = "h5io"; repo = "h5io"; tag = "h5io-${version}"; - hash = "sha256-3mrHIkfaXq06mMzUwudRO81DWTk0TO/e15IQA5fxxNc="; + hash = "sha256-ZkG9e7KtDvoRq9XCExYseE+Z7tMQTWcSiwsSrN5prdI="; }; postPatch = '' @@ -30,22 +35,31 @@ buildPythonPackage rec { --replace "--cov=h5io" "" ''; - nativeBuildInputs = [ setuptools ]; + build-system = [ setuptools-scm ]; - propagatedBuildInputs = [ - numpy + dependencies = [ h5py + numpy ]; - nativeCheckInputs = [ pytestCheckHook ]; + nativeCheckInputs = [ + pytestCheckHook + scipy + tables + ]; + + disabledTests = [ + # See https://github.com/h5io/h5io/issues/86 + "test_state_with_pathlib" + ]; pythonImportsCheck = [ "h5io" ]; - meta = with lib; { + meta = { description = "Read and write simple Python objects using HDF5"; homepage = "https://github.com/h5io/h5io"; changelog = "https://github.com/h5io/h5io/releases/tag/h5io-${version}"; - license = licenses.bsd3; - maintainers = with maintainers; [ mbalatsko ]; + license = lib.licenses.bsd3; + maintainers = with lib.maintainers; [ mbalatsko ]; }; }