linux_xanmod: 5.11.14 -> 5.11.15
[NixPkgs.git] / pkgs / development / python-modules / pynetdicom / default.nix
blob192827566df25b208c350959e8dd41200305a9db
1 { lib
2 , stdenv
3 , buildPythonPackage
4 , fetchFromGitHub
5 , pydicom
6 , pyfakefs
7 , pytestCheckHook
8 , sqlalchemy
9 }:
11 buildPythonPackage rec {
12   pname = "pynetdicom";
13   version = "1.5.6";
15   src = fetchFromGitHub {
16     owner = "pydicom";
17     repo = pname;
18     rev = "v${version}";
19     sha256 = "sha256-xYwnv30I0+CAx4QODSeMNhdlM2NuM8v4J3rx99NdYCc=";
20   };
22   propagatedBuildInputs = [
23     pydicom
24   ];
26   checkInputs = [
27     pyfakefs
28     pytestCheckHook
29     sqlalchemy
30   ];
32   disabledTests = [
33     # Some tests needs network capabilities
34     "test_str_types_empty"
35     "test_associate_reject"
36     "TestEchoSCP"
37     "TestEchoSCPCLI"
38     "TestFindSCP"
39     "TestFindSCPCLI"
40     "TestGetSCP"
41     "TestGetSCPCLI"
42     "TestMoveSCP"
43     "TestMoveSCPCLI"
44     "TestQRGetServiceClass"
45     "TestQRMoveServiceClass"
46     "TestStoreSCP"
47     "TestStoreSCPCLI"
48     "TestStoreSCU"
49     "TestStoreSCUCLI"
50     "TestState"
51   ];
53   pythonImportsCheck = [ "pynetdicom" ];
55   meta = with lib; {
56     description = "Python implementation of the DICOM networking protocol";
57     homepage = "https://github.com/pydicom/pynetdicom";
58     license = with licenses; [ mit ];
59     maintainers = with maintainers; [ fab ];
60     # Tests are not passing on Darwin/Aarch64, thus it's assumed that it doesn't work
61     broken = stdenv.isDarwin || stdenv.isAarch64;
62   };