Something went wrong. Try again.
Nix Packages collection & NixOS github.com/NixOS/nixpkgs
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758{ lib, buildPythonPackage, fetchFromGitHub, cython, djvulibre, setuptools, ghostscript_headless, pkg-config, unittestCheckHook,}:
buildPythonPackage rec { pname = "djvulibre-python"; version = "0.9.3"; pyproject = true;
src = fetchFromGitHub { owner = "FriedrichFroebel"; repo = "python-djvulibre"; tag = version; hash = "sha256-ntDRntNxVchZm+i+qBbiZlfHAXJRKMin9Hi+BoJQjTM="; };
build-system = [ cython djvulibre ghostscript_headless pkg-config setuptools ];
dependencies = [ djvulibre ghostscript_headless ];
preCheck = '' rm -rf djvu rm -rf tests/examples '';
nativeCheckInputs = [ unittestCheckHook ];
unittestFlagsArray = [ "tests" "-v" ];
meta = { description = "Python support for the DjVu image format"; homepage = "https://github.com/FriedrichFroebel/python-djvulibre"; license = lib.licenses.gpl2Only; changelog = "https://github.com/FriedrichFroebel/python-djvulibre/releases/tag/${src.tag}"; maintainers = with lib.maintainers; [ dansbandit ]; };}