2021-03-15 08:37:03 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pydicom
|
|
|
|
, pyfakefs
|
|
|
|
, pytestCheckHook
|
|
|
|
, sqlalchemy
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pynetdicom";
|
2021-06-28 23:13:55 +00:00
|
|
|
version = "1.5.7";
|
2021-03-15 08:37:03 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pydicom";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-06-28 23:13:55 +00:00
|
|
|
sha256 = "0wr6nh0xrhzwf05gnf3dwg5r3lhn9nfwch3l16zkbj6fli871brc";
|
2021-03-15 08:37:03 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
pydicom
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pyfakefs
|
|
|
|
pytestCheckHook
|
|
|
|
sqlalchemy
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
# Some tests needs network capabilities
|
|
|
|
"test_str_types_empty"
|
2021-04-05 15:23:46 +00:00
|
|
|
"test_associate_reject"
|
2021-03-15 08:37:03 +00:00
|
|
|
"TestEchoSCP"
|
|
|
|
"TestEchoSCPCLI"
|
2021-04-05 15:23:46 +00:00
|
|
|
"TestFindSCP"
|
|
|
|
"TestFindSCPCLI"
|
|
|
|
"TestGetSCP"
|
|
|
|
"TestGetSCPCLI"
|
|
|
|
"TestMoveSCP"
|
|
|
|
"TestMoveSCPCLI"
|
|
|
|
"TestQRGetServiceClass"
|
|
|
|
"TestQRMoveServiceClass"
|
2021-03-15 08:37:03 +00:00
|
|
|
"TestStoreSCP"
|
|
|
|
"TestStoreSCPCLI"
|
|
|
|
"TestStoreSCU"
|
|
|
|
"TestStoreSCUCLI"
|
2021-04-05 15:23:46 +00:00
|
|
|
"TestState"
|
2021-03-15 08:37:03 +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-04-05 15:23:46 +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-15 08:37:03 +00:00
|
|
|
};
|
|
|
|
}
|