diff --git a/pkgs/development/python-modules/xnatpy/default.nix b/pkgs/development/python-modules/xnatpy/default.nix index bd378229c9d3..c96b0f87fd63 100644 --- a/pkgs/development/python-modules/xnatpy/default.nix +++ b/pkgs/development/python-modules/xnatpy/default.nix @@ -3,48 +3,64 @@ buildPythonPackage, fetchPypi, pythonOlder, - setuptools, + hatchling, + versioningit, click, + click-option-group, + importlib-metadata, isodate, progressbar2, pydicom, + python-dateutil, + pyyaml, requests, }: buildPythonPackage rec { pname = "xnatpy"; - version = "0.5.1"; - format = "pyproject"; - - disabled = pythonOlder "3.7"; + version = "0.7.2"; + pyproject = true; src = fetchPypi { pname = "xnat"; inherit version; - hash = "sha256-iOw9cVWP5Am4S9JQ0NTmtew38KZiKmau+19K2KG2aKQ="; + hash = "sha256-YbZJl6lvhuhpmeC+0LikZghIEsR2OYe0Om6IRxZcBwg="; }; - nativeBuildInputs = [ setuptools ]; + build-system = [ + hatchling + versioningit + ]; - propagatedBuildInputs = [ + dependencies = [ click + click-option-group + importlib-metadata isodate progressbar2 pydicom + python-dateutil + pyyaml requests ]; + pythonRelaxDeps = [ + "importlib-metadata" + "python-dateutil" + "pydicom" + ]; + # tests missing in PyPI dist and require network access and Docker container doCheck = false; pythonImportsCheck = [ "xnat" ]; - meta = with lib; { + meta = { homepage = "https://xnat.readthedocs.io"; description = "New XNAT client (distinct from pyxnat) that exposes XNAT objects/functions as Python objects/functions"; changelog = "https://gitlab.com/radiology/infrastructure/xnatpy/-/blob/${version}/CHANGELOG?ref_type=tags"; - license = licenses.asl20; - maintainers = with maintainers; [ bcdarwin ]; + license = lib.licenses.asl20; + maintainers = with lib.maintainers; [ bcdarwin ]; mainProgram = "xnat"; }; }