Merge pull request #84066 from marsam/update-pdfminer
python3Packages.pdfminer: 20191020 -> 20200402
This commit is contained in:
commit
0b68f2ef09
@ -1,19 +1,29 @@
|
|||||||
{ stdenv, buildPythonPackage, fetchFromGitHub, isPy3k, six, pycryptodome, chardet, nose, sortedcontainers }:
|
{ stdenv, buildPythonPackage, fetchFromGitHub, isPy3k, pycryptodome, chardet, nose, sortedcontainers, fetchpatch }:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "pdfminer_six";
|
pname = "pdfminer_six";
|
||||||
version = "20191020";
|
version = "20200402";
|
||||||
|
|
||||||
|
disabled = !isPy3k;
|
||||||
|
|
||||||
# No tests in PyPi Tarball
|
# No tests in PyPi Tarball
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "pdfminer";
|
owner = "pdfminer";
|
||||||
repo = "pdfminer.six";
|
repo = "pdfminer.six";
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "1fqn4ilcscvw6ws9a1yqiprha9d3rgw3d0280clkbk6s4l26wm9h";
|
sha256 = "1wl64r3ifpwi7mm5pcxc0ji7w380nxcq3zrv66n95lglm4zqkf26";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ six pycryptodome sortedcontainers ]
|
patches = [
|
||||||
++ stdenv.lib.optionals isPy3k [ chardet ];
|
# Add shebang line to scripts. See: https://github.com/pdfminer/pdfminer.six/pull/408
|
||||||
|
(fetchpatch {
|
||||||
|
url = "https://github.com/pdfminer/pdfminer.six/commit/0c2f44b6de064d9a3cea99bde5b8e9c6a525a69c.patch";
|
||||||
|
sha256 = "1vml66grnvg4g26mya24kiyxsz809d4mr7wz8qmawjbn4ss65y21";
|
||||||
|
excludes = [ "CHANGELOG.md" ];
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
|
propagatedBuildInputs = [ chardet pycryptodome sortedcontainers ];
|
||||||
|
|
||||||
checkInputs = [ nose ];
|
checkInputs = [ nose ];
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
@ -21,8 +31,8 @@ buildPythonPackage rec {
|
|||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "fork of PDFMiner using six for Python 2+3 compatibility";
|
description = "PDF parser and analyzer";
|
||||||
homepage = https://github.com/pdfminer/pdfminer.six;
|
homepage = "https://github.com/pdfminer/pdfminer.six";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = with maintainers; [ psyanticy marsam ];
|
maintainers = with maintainers; [ psyanticy marsam ];
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user