about summary refs log tree commit diff
path: root/pkgs/development/python-modules/jxlpy/default.nix
blob: 307e5211be4b257df697bc4ef1ff94b4054f18a8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{
  lib,
  buildPythonPackage,
  fetchPypi,
  setuptools,
  cython,
  libjxl,
}:

buildPythonPackage rec {
  pname = "jxlpy";
  version = "0.9.5";

  pyproject = true;

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-Kqdm8b3hgO0Q3zE68rSIM4Jd7upjG+SQywSseGwCFUI=";
  };

  build-system = [
    setuptools
    cython
  ];

  buildInputs = [ libjxl ];

  # no tests
  doCheck = false;

  pythonImportsCheck = [ "jxlpy" ];

  meta = {
    description = "Cython bindings and Pillow plugin for JPEG XL";
    homepage = "https://github.com/olokelo/jxlpy";
    changelog = "https://github.com/olokelo/jxlpy/releases/tag/${version}";
    license = lib.licenses.mit;
    maintainers = [ lib.maintainers.huantian ];
  };
}