2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
pythonOlder,
|
|
|
|
setuptools,
|
|
|
|
click,
|
|
|
|
isodate,
|
|
|
|
progressbar2,
|
|
|
|
pydicom,
|
|
|
|
requests,
|
2023-05-24 13:37:59 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "xnatpy";
|
|
|
|
version = "0.5.1";
|
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
pname = "xnat";
|
|
|
|
inherit version;
|
|
|
|
hash = "sha256-iOw9cVWP5Am4S9JQ0NTmtew38KZiKmau+19K2KG2aKQ=";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ setuptools ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
click
|
|
|
|
isodate
|
|
|
|
progressbar2
|
|
|
|
pydicom
|
|
|
|
requests
|
|
|
|
];
|
|
|
|
|
|
|
|
# tests missing in PyPI dist and require network access and Docker container
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "xnat" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://xnat.readthedocs.io";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "New XNAT client (distinct from pyxnat) that exposes XNAT objects/functions as Python objects/functions";
|
2023-05-24 13:37:59 +00:00
|
|
|
changelog = "https://gitlab.com/radiology/infrastructure/xnatpy/-/blob/${version}/CHANGELOG?ref_type=tags";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ bcdarwin ];
|
|
|
|
mainProgram = "xnat";
|
|
|
|
};
|
|
|
|
}
|