depot/third_party/nixpkgs/pkgs/development/python-modules/xnatpy/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

50 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchPypi,
pythonOlder,
setuptools,
click,
isodate,
progressbar2,
pydicom,
requests,
}:
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";
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 ];
mainProgram = "xnat";
};
}