Merge pull request #41207 from Assassinkin/pdfminer_six

pythonPackages.pdfminer: replacing pdfminer with pdfminer_six
This commit is contained in:
Frederik Rietdijk 2018-05-29 17:40:22 +02:00 committed by GitHub
commit 0450c7f5f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 30 additions and 22 deletions

View File

@ -0,0 +1,28 @@
{ stdenv, buildPythonPackage, python, fetchFromGitHub, six, pycryptodome, chardet, nose, pytest }:
buildPythonPackage rec {
pname = "pdfminer_six";
version = "20170720";
src = fetchFromGitHub {
owner = "pdfminer";
repo = "pdfminer.six";
rev = "${version}";
sha256 = "0vax5k0a8qn8x86ybpzqydk7x3hajsk8b6xf3y610j19mgag6wvs";
};
propagatedBuildInputs = [ six pycryptodome chardet ];
checkInputs = [ nose pytest ];
checkPhase = ''
${python.interpreter} -m pytest
'';
meta = with stdenv.lib; {
description = "fork of PDFMiner using six for Python 2+3 compatibility";
homepage = https://github.com/pdfminer/pdfminer.six;
license = licenses.mit;
maintainers = with maintainers; [ psyanticy ];
};
}

View File

@ -311,6 +311,8 @@ in {
outcome = callPackage ../development/python-modules/outcome {};
pdfminer = callPackage ../development/python-modules/pdfminer_six { };
plantuml = callPackage ../tools/misc/plantuml { };
Pmw = callPackage ../development/python-modules/Pmw { };
@ -3791,28 +3793,6 @@ in {
};
};
pdfminer = buildPythonPackage rec {
version = "20140328";
name = "pdfminer-${version}";
disabled = ! isPy27;
src = pkgs.fetchurl {
url = "mirror://pypi/p/pdfminer/pdfminer-${version}.tar.gz";
sha256 = "0qpjv4b776dwvpf5a7v19g41qsz97bv0qqsyvm7a31k50n9pn65s";
};
propagatedBuildInputs = with self; [ ];
meta = {
description = "Tool for extracting information from PDF documents";
homepage = http://euske.github.io/pdfminer/index.html;
license = licenses.mit;
maintainers = with maintainers; [ ];
};
};
peppercorn = buildPythonPackage rec {
name = "peppercorn-0.5";