mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-14 21:16:37 +01:00
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
57 lines
1.1 KiB
Nix
57 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
cython,
|
|
djvulibre,
|
|
setuptools,
|
|
ghostscript_headless,
|
|
pkg-config,
|
|
unittestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "python-djvulibre";
|
|
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 ];
|
|
};
|
|
}
|