mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 07:34:11 +00:00
50 lines
991 B
Nix
50 lines
991 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, flit-core
|
|
, ghostscript
|
|
, pillow
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pydyf";
|
|
version = "0.7.0";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-paiMsG5b62Sh7yFH7oebDlE59f24J/2i/PFKAYx7EeY=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|