Files
nixpkgs/pkgs/development/python-modules/pylibjpeg-libjpeg/default.nix
T
Alexis Hildebrandt 755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00

50 lines
1.0 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
pytestCheckHook,
cython,
poetry-core,
setuptools,
numpy,
}:
buildPythonPackage rec {
pname = "pylibjpeg-libjpeg";
version = "2.02";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "pydicom";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-mGwku19Xe605fF3UU59712rYp+s/pP79lBRl79fhhTI=";
fetchSubmodules = true;
};
nativeBuildInputs = [
cython
poetry-core
setuptools
];
propagatedBuildInputs = [ numpy ];
nativeCheckInputs = [ pytestCheckHook ];
doCheck = false; # tests try to import 'libjpeg.data', which errors
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 ];
};
}