2021-11-18 17:49:15 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2022-11-02 23:15:48 +00:00
|
|
|
, flit-core
|
2021-11-18 17:49:15 +00:00
|
|
|
, ghostscript
|
|
|
|
, pillow
|
2022-11-02 23:15:48 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
2021-11-16 22:29:57 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pydyf";
|
2022-11-02 23:15:48 +00:00
|
|
|
version = "0.5.0";
|
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2021-11-16 22:29:57 +00:00
|
|
|
|
2021-11-18 17:49:15 +00:00
|
|
|
src = fetchPypi {
|
2022-11-02 23:15:48 +00:00
|
|
|
inherit pname version;
|
|
|
|
hash = "sha256-UedRrhUEA3wfwfSBURkTewEYAs1fbDU52wZsRVsUp+E=";
|
2021-11-18 17:49:15 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace pyproject.toml \
|
|
|
|
--replace "--isort --flake8 --cov --no-cov-on-fail" ""
|
|
|
|
'';
|
2021-11-16 22:29:57 +00:00
|
|
|
|
2022-11-02 23:15:48 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
flit-core
|
|
|
|
];
|
|
|
|
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = [
|
2021-11-16 22:29:57 +00:00
|
|
|
ghostscript
|
|
|
|
pillow
|
2022-11-02 23:15:48 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"pydyf"
|
2021-11-16 22:29:57 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Low-level PDF generator written in Python and based on PDF specification 1.7";
|
2022-11-02 23:15:48 +00:00
|
|
|
homepage = "https://doc.courtbouillon.org/pydyf/stable/";
|
2021-11-16 22:29:57 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ rprecenth ];
|
|
|
|
};
|
|
|
|
}
|