Skip to content

Commit d0e1972

Browse files
authored
python313Packages.dicomweb-client: fix build (#437699)
2 parents 71f651a + c6a32c7 commit d0e1972

File tree

1 file changed

+13
-7
lines changed
  • pkgs/development/python-modules/dicomweb-client

1 file changed

+13
-7
lines changed

pkgs/development/python-modules/dicomweb-client/default.nix

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
buildPythonPackage,
44
fetchFromGitHub,
55
pythonOlder,
6-
setuptools,
6+
hatchling,
77
pytestCheckHook,
88
pytest-localserver,
99
numpy,
@@ -18,16 +18,22 @@ buildPythonPackage rec {
1818
version = "0.60.1";
1919
pyproject = true;
2020

21-
disabled = pythonOlder "3.6";
22-
2321
src = fetchFromGitHub {
2422
owner = "ImagingDataCommons";
2523
repo = "dicomweb-client";
2624
tag = "v${version}";
2725
hash = "sha256-ZxeZiCw8I5+Bf266PQ6WQA8mBRC7K3/kZrmuW4l6kQU=";
2826
};
2927

30-
build-system = [ setuptools ];
28+
postPatch = ''
29+
substituteInPlace pyproject.toml \
30+
--replace-fail ', "uv-dynamic-versioning"' "" \
31+
--replace-fail 'dynamic = ["version"]' 'version = "${version}"'
32+
'';
33+
34+
build-system = [
35+
hatchling
36+
];
3137

3238
dependencies = [
3339
numpy
@@ -44,12 +50,12 @@ buildPythonPackage rec {
4450

4551
pythonImportsCheck = [ "dicomweb_client" ];
4652

47-
meta = with lib; {
53+
meta = {
4854
description = "Python client for DICOMweb RESTful services";
4955
homepage = "https://dicomweb-client.readthedocs.io";
5056
changelog = "https://github.com/ImagingDataCommons/dicomweb-client/releases/tag/${src.tag}";
51-
license = licenses.mit;
52-
maintainers = with maintainers; [ bcdarwin ];
57+
license = lib.licenses.mit;
58+
maintainers = with lib.maintainers; [ bcdarwin ];
5359
mainProgram = "dicomweb_client";
5460
};
5561
}

0 commit comments

Comments
 (0)