mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-11 15:27:20 +03:00
Merge pull request #41207 from Assassinkin/pdfminer_six
pythonPackages.pdfminer: replacing pdfminer with pdfminer_six
This commit is contained in:
commit
0450c7f5f3
28
pkgs/development/python-modules/pdfminer_six/default.nix
Normal file
28
pkgs/development/python-modules/pdfminer_six/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
||||
|
@ -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";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user