Skip to content

Commit

Permalink
python312Packages.pylibjpeg-libjpeg: 2.1.0 -> 2.2.0; enable tests
Browse files Browse the repository at this point in the history
Note that the pydicom-related tests are skipped even though pydicom is present
seemingly because the test for pydicom uses unreleased pydicom 3.x APIs.
  • Loading branch information
bcdarwin committed Jul 25, 2024
1 parent a75ae8c commit ec007fe
Showing 1 changed file with 16 additions and 10 deletions.
26 changes: 16 additions & 10 deletions pkgs/development/python-modules/pylibjpeg-libjpeg/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,23 @@
poetry-core,
setuptools,
numpy,
gdcm,
pydicom,
pylibjpeg-data,
}:

buildPythonPackage rec {
pname = "pylibjpeg-libjpeg";
version = "2.1.0";
version = "2.2.0";
pyproject = true;

disabled = pythonOlder "3.7";
disabled = pythonOlder "3.8";

src = fetchFromGitHub {
owner = "pydicom";
repo = pname;
repo = "pylibjpeg-libjpeg";
rev = "refs/tags/v${version}";
hash = "sha256-iU40QdAY5931YM3h3P+WCbiBfX88iVi2QdUvZLptsFs=";
hash = "sha256-g4dGIGHo0J+F0KTVA6yjgfwiYVn6iU69jgHhvEQGwOc=";
fetchSubmodules = true;
};

Expand All @@ -33,17 +36,20 @@ buildPythonPackage rec {

dependencies = [ numpy ];

nativeCheckInputs = [ pytestCheckHook ];

doCheck = false; # tests try to import 'libjpeg.data', which errors
nativeCheckInputs = [
gdcm
pydicom
pylibjpeg-data
pytestCheckHook
];

pythonImportsCheck = [ "libjpeg" ];

meta = with lib; {
meta = {
description = "JPEG, JPEG-LS and JPEG XT plugin for pylibjpeg";
homepage = "https://github.com/pydicom/pylibjpeg-libjpeg";
changelog = "https://github.com/pydicom/pylibjpeg-libjpeg/releases/tag/v${version}";
license = licenses.gpl3Only;
maintainers = with maintainers; [ bcdarwin ];
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [ bcdarwin ];
};
}

0 comments on commit ec007fe

Please sign in to comment.