python313Packages.dicomweb-client: fix build (#437699)
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
pythonOlder,
|
||||
setuptools,
|
||||
hatchling,
|
||||
pytestCheckHook,
|
||||
pytest-localserver,
|
||||
numpy,
|
||||
@@ -18,8 +18,6 @@ buildPythonPackage rec {
|
||||
version = "0.60.1";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "ImagingDataCommons";
|
||||
repo = "dicomweb-client";
|
||||
@@ -27,7 +25,15 @@ buildPythonPackage rec {
|
||||
hash = "sha256-ZxeZiCw8I5+Bf266PQ6WQA8mBRC7K3/kZrmuW4l6kQU=";
|
||||
};
|
||||
|
||||
build-system = [ setuptools ];
|
||||
postPatch = ''
|
||||
substituteInPlace pyproject.toml \
|
||||
--replace-fail ', "uv-dynamic-versioning"' "" \
|
||||
--replace-fail 'dynamic = ["version"]' 'version = "${version}"'
|
||||
'';
|
||||
|
||||
build-system = [
|
||||
hatchling
|
||||
];
|
||||
|
||||
dependencies = [
|
||||
numpy
|
||||
@@ -44,12 +50,12 @@ buildPythonPackage rec {
|
||||
|
||||
pythonImportsCheck = [ "dicomweb_client" ];
|
||||
|
||||
meta = with lib; {
|
||||
meta = {
|
||||
description = "Python client for DICOMweb RESTful services";
|
||||
homepage = "https://dicomweb-client.readthedocs.io";
|
||||
changelog = "https://github.com/ImagingDataCommons/dicomweb-client/releases/tag/${src.tag}";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ bcdarwin ];
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ bcdarwin ];
|
||||
mainProgram = "dicomweb_client";
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user