python310Packages.pylibjpeg-libjpeg: init at 1.3.3

This commit is contained in:
Ben Darwin 2023-01-19 23:52:59 -05:00
parent a462421d50
commit a12fd92577
2 changed files with 45 additions and 0 deletions

View File

@ -0,0 +1,43 @@
{ lib
, stdenv
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, pytestCheckHook
, cython
, numpy
}:
buildPythonPackage rec {
pname = "pylibjpeg-libjpeg";
version = "1.3.3";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "pydicom";
repo = pname;
rev = "refs/tags/v.${version}";
hash = "sha256-fv3zX+P2DWMdxPKsvSPhPCV8cDX3tAMO/h5coMHBHN8=";
fetchSubmodules = true;
};
nativeBuildInputs = [ cython];
propagatedBuildInputs = [ numpy ];
checkInputs = [
pytestCheckHook
];
doCheck = false; # tests try to import 'libjpeg.data', which errors
pythonImportsCheck = [
"libjpeg"
];
meta = with lib; {
description = "A JPEG, JPEG-LS and JPEG XT plugin for pylibjpeg";
homepage = "https://github.com/pydicom/pylibjpeg-libjpeg";
license = licenses.gpl3;
maintainers = with maintainers; [ bcdarwin ];
};
}

View File

@ -8199,6 +8199,8 @@ self: super: with self; {
inherit (pkgs) libusb1;
};
pylibjpeg-libjpeg = callPackage ../development/python-modules/pylibjpeg-libjpeg { };
pyliblo = callPackage ../development/python-modules/pyliblo { };
pylibmc = callPackage ../development/python-modules/pylibmc { };