bba55970ba
GitOrigin-RevId: 3d1a7716d7f1fccbd7d30ab3b2ed3db831f43bde
63 lines
1.3 KiB
Nix
63 lines
1.3 KiB
Nix
{ lib
|
|
, stdenv
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pydicom
|
|
, pyfakefs
|
|
, pytestCheckHook
|
|
, sqlalchemy
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pynetdicom";
|
|
version = "1.5.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "pydicom";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-xYwnv30I0+CAx4QODSeMNhdlM2NuM8v4J3rx99NdYCc=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
pydicom
|
|
];
|
|
|
|
checkInputs = [
|
|
pyfakefs
|
|
pytestCheckHook
|
|
sqlalchemy
|
|
];
|
|
|
|
disabledTests = [
|
|
# Some tests needs network capabilities
|
|
"test_str_types_empty"
|
|
"test_associate_reject"
|
|
"TestEchoSCP"
|
|
"TestEchoSCPCLI"
|
|
"TestFindSCP"
|
|
"TestFindSCPCLI"
|
|
"TestGetSCP"
|
|
"TestGetSCPCLI"
|
|
"TestMoveSCP"
|
|
"TestMoveSCPCLI"
|
|
"TestQRGetServiceClass"
|
|
"TestQRMoveServiceClass"
|
|
"TestStoreSCP"
|
|
"TestStoreSCPCLI"
|
|
"TestStoreSCU"
|
|
"TestStoreSCUCLI"
|
|
"TestState"
|
|
];
|
|
|
|
pythonImportsCheck = [ "pynetdicom" ];
|
|
|
|
meta = with lib; {
|
|
description = "Python implementation of the DICOM networking protocol";
|
|
homepage = "https://github.com/pydicom/pynetdicom";
|
|
license = with licenses; [ mit ];
|
|
maintainers = with maintainers; [ fab ];
|
|
# Tests are not passing on Darwin/Aarch64, thus it's assumed that it doesn't work
|
|
broken = stdenv.isDarwin || stdenv.isAarch64;
|
|
};
|
|
}
|