evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / development / python-modules / pylibjpeg / default.nix
blob155b3f1fe8c0977f22dcc930ddb131dfce9eba0f
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   pythonOlder,
6   pytestCheckHook,
7   flit-core,
8   numpy,
9   pydicom,
10   pylibjpeg-data,
11   pylibjpeg-libjpeg,
14 buildPythonPackage rec {
15   pname = "pylibjpeg";
16   version = "2.0.1";
17   pyproject = true;
19   disabled = pythonOlder "3.7";
21   src = fetchFromGitHub {
22     owner = "pydicom";
23     repo = "pylibjpeg";
24     rev = "refs/tags/v${version}";
25     hash = "sha256-MA1A/hTIx95MYZ2LGOifnHn77wbv0ydAgQSzNZRykVg=";
26   };
28   build-system = [ flit-core ];
30   dependencies = [ numpy ];
32   nativeCheckInputs = [
33     pytestCheckHook
34     pydicom
35     pylibjpeg-data
36     pylibjpeg-libjpeg
37   ];
39   pythonImportsCheck = [ "pylibjpeg" ];
41   meta = with lib; {
42     description = "Python framework for decoding JPEG images, with a focus on supporting Pydicom";
43     homepage = "https://github.com/pydicom/pylibjpeg";
44     changelog = "https://github.com/pydicom/pylibjpeg/releases/tag/v${version}";
45     license = licenses.mit;
46     maintainers = with maintainers; [ bcdarwin ];
47   };