mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-11-28 08:49:51 +00:00
67 lines
1.5 KiB
Nix
67 lines
1.5 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
fetchpatch2,
|
|
hatchling,
|
|
uv-dynamic-versioning,
|
|
pytestCheckHook,
|
|
pytest-localserver,
|
|
numpy,
|
|
pillow,
|
|
pydicom,
|
|
requests,
|
|
retrying,
|
|
}:
|
|
|
|
buildPythonPackage (finalAttrs: {
|
|
pname = "dicomweb-client";
|
|
version = "0.61.2";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ImagingDataCommons";
|
|
repo = "dicomweb-client";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-zFOnj8rzr2MUqcRFv9j7gXQHi9I7HwCmS1oNOKIkS5k=";
|
|
};
|
|
|
|
patches = [
|
|
# https://github.com/ImagingDataCommons/dicomweb-client/pull/131
|
|
(fetchpatch2 {
|
|
name = "pillow-13-compat";
|
|
url = "https://github.com/ImagingDataCommons/dicomweb-client/commit/b442dc9d65bdf99a4d0c7969ccbcd8dd21df52d6.patch";
|
|
hash = "sha256-JV9QOO1mQQ8FvVdB7bav+Fqcu3GZSHkiH/eVoAJLSoY=";
|
|
})
|
|
];
|
|
|
|
build-system = [
|
|
hatchling
|
|
uv-dynamic-versioning
|
|
];
|
|
|
|
dependencies = [
|
|
numpy
|
|
pillow
|
|
pydicom
|
|
requests
|
|
retrying
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
pytest-localserver
|
|
];
|
|
|
|
pythonImportsCheck = [ "dicomweb_client" ];
|
|
|
|
meta = {
|
|
description = "Python client for DICOMweb RESTful services";
|
|
homepage = "https://dicomweb-client.readthedocs.io";
|
|
changelog = "https://github.com/ImagingDataCommons/dicomweb-client/releases/tag/${finalAttrs.src.tag}";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ bcdarwin ];
|
|
mainProgram = "dicomweb_client";
|
|
};
|
|
})
|