evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / development / python-modules / pylibjpeg-libjpeg / default.nix
blob62a5f7e81318d140a0f2075579ec2caab3356142
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   pythonOlder,
6   pytestCheckHook,
7   cython,
8   poetry-core,
9   setuptools,
10   numpy,
13 buildPythonPackage rec {
14   pname = "pylibjpeg-libjpeg";
15   version = "2.2.0";
16   pyproject = true;
18   disabled = pythonOlder "3.7";
20   src = fetchFromGitHub {
21     owner = "pydicom";
22     repo = pname;
23     rev = "refs/tags/v${version}";
24     hash = "sha256-g4dGIGHo0J+F0KTVA6yjgfwiYVn6iU69jgHhvEQGwOc=";
25     fetchSubmodules = true;
26   };
28   build-system = [
29     cython
30     poetry-core
31     setuptools
32   ];
34   dependencies = [ numpy ];
36   nativeCheckInputs = [ pytestCheckHook ];
38   doCheck = false; # tests try to import 'libjpeg.data', which errors
40   pythonImportsCheck = [ "libjpeg" ];
42   meta = with lib; {
43     description = "JPEG, JPEG-LS and JPEG XT plugin for pylibjpeg";
44     homepage = "https://github.com/pydicom/pylibjpeg-libjpeg";
45     changelog = "https://github.com/pydicom/pylibjpeg-libjpeg/releases/tag/v${version}";
46     license = licenses.gpl3Only;
47     maintainers = with maintainers; [ bcdarwin ];
48   };