nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 50 lines 1.1 kB view raw
1{ lib 2, buildPythonPackage 3, fetchpatch 4, fetchPypi 5, isPy3k 6, pytestCheckHook 7, coverage 8, ghostscript 9, pillow 10}: 11 12buildPythonPackage rec { 13 pname = "pydyf"; 14 version = "0.1.2"; 15 disabled = !isPy3k; 16 17 src = fetchPypi { 18 inherit version; 19 pname = "pydyf"; 20 sha256 = "sha256-Hi9d5IF09QXeAlp9HnzwG73ZQiyoq5RReCvwDuF4YCw="; 21 }; 22 23 patches = [ 24 # Fix tests for Ghostscript 9.56 25 # Remove after v0.1.3 has been released 26 (fetchpatch { 27 url = "https://github.com/CourtBouillon/pydyf/commit/d4c34823f1d15368753c9c26f7acc7a24fc2d979.patch"; 28 sha256 = "sha256-2hHZW/q5CbStbpSJYbm3b23qKXANEb5jbPGQ83uHC+Q="; 29 }) 30 ]; 31 32 postPatch = '' 33 substituteInPlace pyproject.toml \ 34 --replace "--isort --flake8 --cov --no-cov-on-fail" "" 35 ''; 36 37 checkInputs = [ 38 pytestCheckHook 39 coverage 40 ghostscript 41 pillow 42 ]; 43 44 meta = with lib; { 45 homepage = "https://doc.courtbouillon.org/pydyf/stable/"; 46 description = "Low-level PDF generator written in Python and based on PDF specification 1.7"; 47 license = licenses.bsd3; 48 maintainers = with maintainers; [ rprecenth ]; 49 }; 50}