16 buildPythonPackage rec {
21 disabled = pythonOlder "3.7";
23 src = fetchFromGitHub {
26 rev = "refs/tags/v${version}";
27 hash = "sha256-/JWQUtFBW4uqCbs/nUxj1pRBfTCXV4wcqTkqvzpdFrM=";
32 name = "fix-python-3.11-test-attribute-errors";
33 url = "https://github.com/pydicom/pynetdicom/pull/754/commits/2126bd932d6dfb3f07045eb9400acb7eaa1b3069.patch";
34 hash = "sha256-t6Lg0sTZSWIE5q5pkBvEoHDQ+cklDn8SgNBcFk1myp4=";
38 build-system = [ setuptools ];
40 dependencies = [ pydicom ];
49 # Some tests needs network capabilities
50 "test_str_types_empty"
51 "test_associate_reject"
52 "TestAEGoodAssociation"
55 "TestEventHandlingAcceptor"
56 "TestEventHandlingRequestor"
64 "TestQRGetServiceClass"
65 "TestQRMoveServiceClass"
68 "TestStorageServiceClass"
77 "pynetdicom/apps/tests/"
78 ] ++ lib.optionals (pythonAtLeast "3.12") [
79 # https://github.com/pydicom/pynetdicom/issues/924
80 "pynetdicom/tests/test_assoc.py"
81 "pynetdicom/tests/test_transport.py"
84 pythonImportsCheck = [ "pynetdicom" ];
87 # https://github.com/pydicom/pynetdicom/issues/923
89 "ignore::pytest.PytestRemovedIn8Warning"
93 description = "Python implementation of the DICOM networking protocol";
94 homepage = "https://github.com/pydicom/pynetdicom";
95 changelog = "https://github.com/pydicom/pynetdicom/releases/tag/v${version}";
96 license = with licenses; [ mit ];
97 maintainers = with maintainers; [ fab ];
98 # Tests are not passing on Darwin/Aarch64, thus it's assumed that it doesn't work
99 broken = stdenv.isDarwin || stdenv.isAarch64;