python312Packages.ancp-bids: unbreak and minor refactor (#345396)

This commit is contained in:
OTABI Tomoya
2024-10-06 16:32:04 +09:00
committed by GitHub
@@ -6,7 +6,6 @@
pythonOlder,
pytestCheckHook,
setuptools,
wheel,
numpy,
pandas,
}:
@@ -14,7 +13,8 @@
buildPythonPackage rec {
pname = "ancp-bids";
version = "0.2.4";
format = "pyproject";
pyproject = true;
disabled = pythonOlder "3.7";
# `tests/data` dir missing from PyPI dist
@@ -25,19 +25,7 @@ buildPythonPackage rec {
hash = "sha256-c6X1gCYAezgZQP6xfQPfKW8V35F1cnTdbryEp3sZ4jw=";
};
patches = [
# https://github.com/ANCPLabOldenburg/ancp-bids/pull/78
(fetchpatch {
name = "unpin-wheel-build-dependency.patch";
url = "https://github.com/ANCPLabOldenburg/ancp-bids/commit/6e7a0733002845aacb0152c5aacfb42054a9b65e.patch";
hash = "sha256-WbQRwb8Wew46OJu+zo7n4qBtgtH/Lr6x3YHAyN9ko9M=";
})
];
nativeBuildInputs = [
setuptools
wheel
];
build-system = [ setuptools ];
nativeCheckInputs = [
numpy
@@ -54,6 +42,7 @@ buildPythonPackage rec {
meta = with lib; {
homepage = "https://ancpbids.readthedocs.io";
description = "Read/write/validate/query BIDS datasets";
changelog = "https://github.com/ANCPLabOldenburg/ancp-bids/releases/tag/${version}";
license = licenses.mit;
maintainers = with maintainers; [ bcdarwin ];
};