depot/third_party/nixpkgs/pkgs/development/python-modules/pydyf/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

46 lines
990 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
flit-core,
ghostscript,
pillow,
pytestCheckHook,
pythonOlder,
}:
buildPythonPackage rec {
pname = "pydyf";
version = "0.11.0";
format = "pyproject";
disabled = pythonOlder "3.8";
src = fetchPypi {
inherit pname version;
hash = "sha256-OU3d9hnMqdDFVxXjxV6hIam/nLx4DNwSAaJCeRe4a2Q=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace "--isort --flake8 --cov --no-cov-on-fail" ""
'';
nativeBuildInputs = [ flit-core ];
nativeCheckInputs = [
ghostscript
pillow
pytestCheckHook
];
pythonImportsCheck = [ "pydyf" ];
meta = with lib; {
description = "Low-level PDF generator written in Python and based on PDF specification 1.7";
homepage = "https://doc.courtbouillon.org/pydyf/stable/";
changelog = "https://github.com/CourtBouillon/pydyf/releases/tag/v${version}";
license = licenses.bsd3;
maintainers = with maintainers; [ rprecenth ];
};
}