Skip to content

Commit

Permalink
python312Packages.pylibjpeg-libjpeg: 2.1.0 -> 2.3.0; enable (passthru…
Browse files Browse the repository at this point in the history
…) tests
  • Loading branch information
bcdarwin committed Jan 3, 2025
1 parent 9a1c989 commit ea418a3
Showing 1 changed file with 43 additions and 28 deletions.
71 changes: 43 additions & 28 deletions pkgs/development/python-modules/pylibjpeg-libjpeg/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,42 +8,57 @@
poetry-core,
setuptools,
numpy,
pydicom,
pylibjpeg-data,
pylibjpeg,
}:

buildPythonPackage rec {
pname = "pylibjpeg-libjpeg";
version = "2.2.0";
pyproject = true;
let
self = buildPythonPackage rec {
pname = "pylibjpeg-libjpeg";
version = "2.3.0";
pyproject = true;

disabled = pythonOlder "3.7";
disabled = pythonOlder "3.9";

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

build-system = [
cython
poetry-core
setuptools
];

build-system = [
cython
poetry-core
setuptools
];
dependencies = [ numpy ];

dependencies = [ numpy ];
nativeCheckInputs = [
pydicom
pylibjpeg-data
pylibjpeg
pytestCheckHook
];

nativeCheckInputs = [ pytestCheckHook ];
doCheck = false; # circular test dependency with `pydicom`

doCheck = false; # tests try to import 'libjpeg.data', which errors
passthru.tests.check = self.overridePythonAttrs (_: {
doCheck = true;
});

pythonImportsCheck = [ "libjpeg" ];
pythonImportsCheck = [ "libjpeg" ];

meta = with lib; {
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 ];
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 = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [ bcdarwin ];
};
};
}
in
self

0 comments on commit ea418a3

Please sign in to comment.