pythonPackages.pikepdf: init at 1.1.0
This commit is contained in:
parent
d69040e9c4
commit
6fcb265e63
73
pkgs/development/python-modules/pikepdf/default.nix
Normal file
73
pkgs/development/python-modules/pikepdf/default.nix
Normal file
@ -0,0 +1,73 @@
|
|||||||
|
{ attrs
|
||||||
|
, buildPythonPackage
|
||||||
|
, defusedxml
|
||||||
|
, fetchPypi
|
||||||
|
, hypothesis
|
||||||
|
, isPy3k
|
||||||
|
, lxml
|
||||||
|
, pillow
|
||||||
|
, pybind11
|
||||||
|
, pytest
|
||||||
|
, pytest-helpers-namespace
|
||||||
|
, pytest-timeout
|
||||||
|
, pytest_xdist
|
||||||
|
, pytestrunner
|
||||||
|
, python-xmp-toolkit
|
||||||
|
, python3
|
||||||
|
, qpdf
|
||||||
|
, setuptools-scm-git-archive
|
||||||
|
, setuptools_scm
|
||||||
|
, stdenv
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "pikepdf";
|
||||||
|
version = "1.1.0";
|
||||||
|
disabled = ! isPy3k;
|
||||||
|
|
||||||
|
src = fetchPypi {
|
||||||
|
inherit pname version;
|
||||||
|
sha256 = "14b36r6h3088z2sxp2pqvm171js53hz53mwm1g52iadignjnp0my";
|
||||||
|
};
|
||||||
|
|
||||||
|
buildInputs = [
|
||||||
|
pybind11
|
||||||
|
qpdf
|
||||||
|
];
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
setuptools-scm-git-archive
|
||||||
|
setuptools_scm
|
||||||
|
];
|
||||||
|
|
||||||
|
checkInputs = [
|
||||||
|
attrs
|
||||||
|
hypothesis
|
||||||
|
pillow
|
||||||
|
pytest
|
||||||
|
pytest-helpers-namespace
|
||||||
|
pytest-timeout
|
||||||
|
pytest_xdist
|
||||||
|
pytestrunner
|
||||||
|
python-xmp-toolkit
|
||||||
|
];
|
||||||
|
|
||||||
|
propagatedBuildInputs = [ defusedxml lxml ];
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace requirements/test.txt \
|
||||||
|
--replace "pytest >= 3.6.0, < 4.1.0" "pytest >= 4.2.1, < 5"
|
||||||
|
'';
|
||||||
|
|
||||||
|
preBuild = ''
|
||||||
|
HOME=$TMPDIR
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
homepage = "https://github.com/pikepdf/pikepdf";
|
||||||
|
description = "Read and write PDFs with Python, powered by qpdf";
|
||||||
|
license = licenses.mpl20;
|
||||||
|
maintainers = [ maintainers.kiwi ];
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -4113,6 +4113,8 @@ in {
|
|||||||
|
|
||||||
pika-pool = callPackage ../development/python-modules/pika-pool { };
|
pika-pool = callPackage ../development/python-modules/pika-pool { };
|
||||||
|
|
||||||
|
pikepdf = callPackage ../development/python-modules/pikepdf { };
|
||||||
|
|
||||||
kmapper = callPackage ../development/python-modules/kmapper { };
|
kmapper = callPackage ../development/python-modules/kmapper { };
|
||||||
|
|
||||||
kmsxx = (callPackage ../development/libraries/kmsxx {
|
kmsxx = (callPackage ../development/libraries/kmsxx {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user