depot/third_party/nixpkgs/pkgs/development/python-modules/pydyf/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

46 lines
989 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
flit-core,
ghostscript,
pillow,
pytestCheckHook,
pythonOlder,
}:
buildPythonPackage rec {
pname = "pydyf";
version = "0.9.0";
format = "pyproject";
disabled = pythonOlder "3.8";
src = fetchPypi {
inherit pname version;
hash = "sha256-1bJE6PwkEZznvV1R6i1nc8D/iKqBWX21VrxEDGuIBhA=";
};
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 ];
};
}