diff options
author | Fabian Affolter <fabian@affolter-engineering.ch> | 2021-03-14 02:04:53 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-14 02:04:53 +0100 |
commit | d6742106a058af4dc139b9da59ef2a2a18e0ceb3 (patch) | |
tree | 7728fa0a8e0de8fcc3adf2bcab199d3ce2cdaaba | |
parent | bf0ae59408c9862a1e844a0ba4d5d2ebf63f41b3 (diff) | |
parent | 4a1c168db7462c6ccd74751626ab103395a978bc (diff) |
Merge pull request #109448 from fabaff/pynetdicom
python3Packages.pynetdicom: init at 1.5.5
-rw-r--r-- | pkgs/development/python-modules/pynetdicom/default.nix | 55 | ||||
-rw-r--r-- | pkgs/top-level/python-packages.nix | 2 |
2 files changed, 57 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/pynetdicom/default.nix b/pkgs/development/python-modules/pynetdicom/default.nix new file mode 100644 index 000000000000..77308a1966be --- /dev/null +++ b/pkgs/development/python-modules/pynetdicom/default.nix @@ -0,0 +1,55 @@ +{ lib +, stdenv +, buildPythonPackage +, fetchFromGitHub +, pydicom +, pyfakefs +, pytestCheckHook +, sqlalchemy +}: + +buildPythonPackage rec { + pname = "pynetdicom"; + version = "1.5.5"; + + src = fetchFromGitHub { + owner = "pydicom"; + repo = pname; + rev = "v${version}"; + sha256 = "0zjpscxdhlcv99py7jx5r6dw32nzbcr49isrzkdr6g3zwyxwzbfm"; + }; + + propagatedBuildInputs = [ + pydicom + ]; + + checkInputs = [ + pyfakefs + pytestCheckHook + sqlalchemy + ]; + + disabledTests = [ + # Some tests needs network capabilities + "test_str_types_empty" + "TestEchoSCP" + "TestEchoSCPCLI" + "TestStoreSCP" + "TestStoreSCPCLI" + "TestStoreSCU" + "TestStoreSCUCLI" + "TestQRGetServiceClass" + "TestQRMoveServiceClass" + ]; + + 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, thus it's assumed that it doesn't work + broken = stdenv.isDarwin; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 53d99d3469f3..4f2a5e839369 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5951,6 +5951,8 @@ in { pynest2d = callPackage ../development/python-modules/pynest2d { }; + pynetdicom = callPackage ../development/python-modules/pynetdicom { }; + pynisher = callPackage ../development/python-modules/pynisher { }; pynmea2 = callPackage ../development/python-modules/pynmea2 { }; |