depot/third_party/nixpkgs/pkgs/development/python-modules/jxlpy/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

40 lines
730 B
Nix

{
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 ];
};
}