at master 1.0 kB view raw
1{ 2 pkgs, 3 lib, 4 buildPythonPackage, 5 fetchPypi, 6 flit-core, 7 pillow, 8 pytestCheckHook, 9 pytest-cov-stub, 10 pythonOlder, 11}: 12 13buildPythonPackage rec { 14 pname = "pydyf"; 15 version = "0.11.0"; 16 format = "pyproject"; 17 18 disabled = pythonOlder "3.8"; 19 20 src = fetchPypi { 21 inherit pname version; 22 hash = "sha256-OU3d9hnMqdDFVxXjxV6hIam/nLx4DNwSAaJCeRe4a2Q="; 23 }; 24 25 postPatch = '' 26 substituteInPlace pyproject.toml \ 27 --replace "--isort --flake8" "" 28 ''; 29 30 nativeBuildInputs = [ flit-core ]; 31 32 nativeCheckInputs = [ 33 pkgs.ghostscript 34 pillow 35 pytestCheckHook 36 pytest-cov-stub 37 ]; 38 39 pythonImportsCheck = [ "pydyf" ]; 40 41 meta = with lib; { 42 description = "Low-level PDF generator written in Python and based on PDF specification 1.7"; 43 homepage = "https://doc.courtbouillon.org/pydyf/stable/"; 44 changelog = "https://github.com/CourtBouillon/pydyf/releases/tag/v${version}"; 45 license = licenses.bsd3; 46 maintainers = with maintainers; [ rprecenth ]; 47 }; 48}