2021-03-10 08:24:16 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pydicom
|
|
|
|
, pyfakefs
|
|
|
|
, pytestCheckHook
|
|
|
|
, sqlalchemy
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pynetdicom";
|
2021-03-27 14:35:15 +00:00
|
|
|
version = "1.5.6";
|
2021-03-10 08:24:16 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pydicom";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-03-27 14:35:15 +00:00
|
|
|
sha256 = "sha256-xYwnv30I0+CAx4QODSeMNhdlM2NuM8v4J3rx99NdYCc=";
|
2021-03-10 08:24:16 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
pydicom
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pyfakefs
|
|
|
|
pytestCheckHook
|
|
|
|
sqlalchemy
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
# Some tests needs network capabilities
|
|
|
|
"test_str_types_empty"
|
2021-03-27 14:35:15 +00:00
|
|
|
"test_associate_reject"
|
2021-03-10 08:24:16 +00:00
|
|
|
"TestEchoSCP"
|
|
|
|
"TestEchoSCPCLI"
|
2021-04-03 16:28:09 +01:00
|
|
|
"TestFindSCP"
|
|
|
|
"TestFindSCPCLI"
|
|
|
|
"TestGetSCP"
|
|
|
|
"TestGetSCPCLI"
|
|
|
|
"TestMoveSCP"
|
|
|
|
"TestMoveSCPCLI"
|
|
|
|
"TestQRGetServiceClass"
|
|
|
|
"TestQRMoveServiceClass"
|
2021-03-10 08:24:16 +00:00
|
|
|
"TestStoreSCP"
|
|
|
|
"TestStoreSCPCLI"
|
|
|
|
"TestStoreSCU"
|
|
|
|
"TestStoreSCUCLI"
|
2021-04-03 16:28:09 +01:00
|
|
|
"TestState"
|
2021-03-10 08:24:16 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
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 ];
|
2021-03-27 14:35:15 +00:00
|
|
|
# Tests are not passing on Darwin/Aarch64, thus it's assumed that it doesn't work
|
|
|
|
broken = stdenv.isDarwin || stdenv.isAarch64;
|
2021-03-10 08:24:16 +00:00
|
|
|
};
|
|
|
|
}
|