nixpkgs/pkgs/development/python-modules/pikepdf/default.nix

79 lines
1.3 KiB
Nix
Raw Normal View History

{ lib
, attrs
2019-03-14 03:13:56 +00:00
, buildPythonPackage
, defusedxml
, fetchPypi
, hypothesis
, isPy3k
, lxml
, pillow
, psutil
2019-03-14 03:13:56 +00:00
, pybind11
, pytest-cov
2019-03-14 03:13:56 +00:00
, pytest-helpers-namespace
, pytest-timeout
, pytest-xdist
, pytestCheckHook
2020-12-01 01:28:31 +00:00
, python-dateutil
2019-03-14 03:13:56 +00:00
, python-xmp-toolkit
, qpdf
, setuptools
, setuptools-scm
2019-03-14 03:13:56 +00:00
, setuptools-scm-git-archive
}:
buildPythonPackage rec {
pname = "pikepdf";
version = "2.11.1";
2019-03-14 03:13:56 +00:00
disabled = ! isPy3k;
src = fetchPypi {
inherit pname version;
sha256 = "0vs7qa3s4scfhyldfw99hhxpna6rj49rsbr2k0j6b4qx1bw8h141";
2019-03-14 03:13:56 +00:00
};
buildInputs = [
pybind11
qpdf
];
nativeBuildInputs = [
setuptools-scm-git-archive
setuptools-scm
2019-03-14 03:13:56 +00:00
];
checkInputs = [
attrs
hypothesis
pytest-helpers-namespace
pytest-timeout
pytest-xdist
psutil
pytest-cov
pytestCheckHook
2020-12-01 01:28:31 +00:00
python-dateutil
2019-03-14 03:13:56 +00:00
python-xmp-toolkit
];
propagatedBuildInputs = [
defusedxml
lxml
pillow
setuptools
];
2019-03-14 03:13:56 +00:00
preBuild = ''
HOME=$TMPDIR
'';
pythonImportsCheck = [ "pikepdf" ];
meta = with lib; {
2019-03-14 03:13:56 +00:00
homepage = "https://github.com/pikepdf/pikepdf";
description = "Read and write PDFs with Python, powered by qpdf";
license = licenses.mpl20;
maintainers = [ maintainers.kiwi ];
changelog = "https://github.com/pikepdf/pikepdf/blob/${version}/docs/release_notes.rst";
2019-03-14 03:13:56 +00:00
};
}