python3Packages.pikepdf: 2.2.0 -> 2.5.2
This commit is contained in:
parent
8afeffa2b8
commit
6eee9edff9
@ -1,4 +1,5 @@
|
|||||||
{ attrs
|
{ lib
|
||||||
|
, attrs
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, defusedxml
|
, defusedxml
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
@ -6,29 +7,28 @@
|
|||||||
, isPy3k
|
, isPy3k
|
||||||
, lxml
|
, lxml
|
||||||
, pillow
|
, pillow
|
||||||
|
, psutil
|
||||||
, pybind11
|
, pybind11
|
||||||
, pytestCheckHook
|
, pytest-cov
|
||||||
, pytest-helpers-namespace
|
, pytest-helpers-namespace
|
||||||
, pytest-timeout
|
, pytest-timeout
|
||||||
, pytest_xdist
|
, pytest-xdist
|
||||||
, pytestrunner
|
, pytestCheckHook
|
||||||
, python-dateutil
|
, python-dateutil
|
||||||
, python-xmp-toolkit
|
, python-xmp-toolkit
|
||||||
, python3
|
|
||||||
, qpdf
|
, qpdf
|
||||||
|
, setuptools-scm
|
||||||
, setuptools-scm-git-archive
|
, setuptools-scm-git-archive
|
||||||
, setuptools_scm
|
|
||||||
, lib
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "pikepdf";
|
pname = "pikepdf";
|
||||||
version = "2.2.0";
|
version = "2.5.2";
|
||||||
disabled = ! isPy3k;
|
disabled = ! isPy3k;
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "74300a32c41b3d578772f6933f23a88b19f74484185e71e5225ce2f7ea5aea78";
|
sha256 = "sha256-j8PpeyTa+9SxrAV8jxRMGEZ85V00KhqMQmiIkOrVjvM=";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
@ -38,36 +38,34 @@ buildPythonPackage rec {
|
|||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
setuptools-scm-git-archive
|
setuptools-scm-git-archive
|
||||||
setuptools_scm
|
setuptools-scm
|
||||||
];
|
];
|
||||||
|
|
||||||
checkInputs = [
|
checkInputs = [
|
||||||
attrs
|
attrs
|
||||||
hypothesis
|
hypothesis
|
||||||
pillow
|
|
||||||
pytestCheckHook
|
|
||||||
pytest-helpers-namespace
|
pytest-helpers-namespace
|
||||||
pytest-timeout
|
pytest-timeout
|
||||||
pytest_xdist
|
pytest-xdist
|
||||||
pytestrunner
|
psutil
|
||||||
|
pytest-cov
|
||||||
|
pytestCheckHook
|
||||||
python-dateutil
|
python-dateutil
|
||||||
python-xmp-toolkit
|
python-xmp-toolkit
|
||||||
];
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [ defusedxml lxml ];
|
propagatedBuildInputs = [
|
||||||
|
defusedxml
|
||||||
postPatch = ''
|
lxml
|
||||||
sed -i \
|
pillow
|
||||||
-e 's/^pytest .*/pytest/g' \
|
];
|
||||||
-e 's/^attrs .*/attrs/g' \
|
|
||||||
-e 's/^hypothesis .*/hypothesis/g' \
|
|
||||||
requirements/test.txt
|
|
||||||
'';
|
|
||||||
|
|
||||||
preBuild = ''
|
preBuild = ''
|
||||||
HOME=$TMPDIR
|
HOME=$TMPDIR
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
pythonImportsCheck = [ "pikepdf" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://github.com/pikepdf/pikepdf";
|
homepage = "https://github.com/pikepdf/pikepdf";
|
||||||
description = "Read and write PDFs with Python, powered by qpdf";
|
description = "Read and write PDFs with Python, powered by qpdf";
|
||||||
|
Loading…
Reference in New Issue
Block a user