Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / pylibjpeg-libjpeg / default.nix
bloba9ffc663fcaf08c46e1b3fe97f7e1d26b50b52af
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , pythonOlder
5 , pytestCheckHook
6 , cython
7 , numpy
8 }:
10 buildPythonPackage rec {
11   pname = "pylibjpeg-libjpeg";
12   version = "1.3.4";
13   format = "setuptools";
15   disabled = pythonOlder "3.7";
17   src = fetchFromGitHub {
18     owner = "pydicom";
19     repo = pname;
20     rev = "refs/tags/v${version}";
21     hash = "sha256-VmqeoMU8riLpWyC+yKqq56TkruxOie6pjbg+ozivpBk=";
22     fetchSubmodules = true;
23   };
25   nativeBuildInputs = [
26     cython
27   ];
29   propagatedBuildInputs = [
30     numpy
31   ];
33   nativeCheckInputs = [
34     pytestCheckHook
35   ];
37   doCheck = false;  # tests try to import 'libjpeg.data', which errors
39   pythonImportsCheck = [
40     "libjpeg"
41   ];
43   meta = with lib; {
44     description = "A JPEG, JPEG-LS and JPEG XT plugin for pylibjpeg";
45     homepage = "https://github.com/pydicom/pylibjpeg-libjpeg";
46     changelog = "https://github.com/pydicom/pylibjpeg-libjpeg/releases/tag/v${version}";
47     license = licenses.gpl3Only;
48     maintainers = with maintainers; [ bcdarwin ];
49   };