Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 cython, 6 djvulibre, 7 ghostscript_headless, 8 packaging, 9 pkg-config, 10 requests, 11 setuptools, 12 unittestCheckHook, 13 wheel, 14}: 15 16buildPythonPackage rec { 17 pname = "python-djvulibre"; 18 version = "0.9.0"; 19 pyproject = true; 20 21 src = fetchFromGitHub { 22 owner = "FriedrichFroebel"; 23 repo = "python-djvulibre"; 24 rev = version; 25 hash = "sha256-OrOZFvzDEBwBmIc+i3LjNTh6K2vhe6NWtSJrFTSkrgA="; 26 }; 27 28 nativeBuildInputs = [ 29 cython 30 packaging 31 pkg-config 32 setuptools 33 wheel 34 ]; 35 36 buildInputs = [ 37 djvulibre 38 ghostscript_headless 39 ]; 40 41 preCheck = '' 42 rm -rf djvu 43 ''; 44 45 nativeCheckInputs = [ unittestCheckHook ]; 46 47 unittestFlagsArray = [ 48 "tests" 49 "-v" 50 ]; 51 52 meta = with lib; { 53 description = "Python support for the DjVu image format"; 54 homepage = "https://github.com/FriedrichFroebel/python-djvulibre"; 55 license = licenses.gpl2Only; 56 changelog = "https://github.com/FriedrichFroebel/python-djvulibre/releases/tag/${version}"; 57 maintainers = with maintainers; [ dansbandit ]; 58 }; 59}