git.iko.soy/typeable/nixpkgs
on master help sign in
pythonPackages.pdfminer: replacing pdfminer with pdfminer_six
commita3caa7bd05f7a5070a02efa49eb7fd806b73b549 authorAssassinkin <iuns@outlook.fr> dateTue 29 May 2018, 13:30 (8 years ago) parentb37cb1d
2 files changed+3−31
pkgs/development/python-modules/pdfminer_six/default.nix+2−8 pkgs/top-level/python-packages.nix+1−23
pkgs/development/python-modules/pdfminer_six/default.nix+2−8
@@ -1,4 +1,4 @@
1−{ stdenv, buildPythonPackage, fetchFromGitHub, six, pycryptodome, chardet, nose, pytest }:
1+{ stdenv, buildPythonPackage, python, fetchFromGitHub, six, pycryptodome, chardet, nose, pytest }:
22
33buildPythonPackage rec {
44 pname = "pdfminer_six";
@@ -15,13 +15,7 @@ buildPythonPackage rec {
1515
1616 checkInputs = [ nose pytest ];
1717 checkPhase = ''
18− # some crappy hack to ensure the test do not fail for python3
19− # for some reason importing from the folder tools fails :\
20− cp tools/dumppdf.py tests/
21− cp tools/pdf2txt.py tests/
22− sed -i '/from tools import dumppdf/c\ import dumppdf' tests/test_tools_dumppdf.py
23− sed -i '/import tools.pdf2txt as pdf2txt/c\import pdf2txt as pdf2txt' tests/test_tools_pdf2txt.py
24− pytest
18+ ${python.interpreter} -m pytest
2519 '';
2620
2721 meta = with stdenv.lib; {
pkgs/top-level/python-packages.nix+1−23
@@ -311,7 +311,7 @@ in {
311311
312312 outcome = callPackage ../development/python-modules/outcome {};
313313
314− pdfminer_six = callPackage ../development/python-modules/pdfminer_six { };
314+ pdfminer = callPackage ../development/python-modules/pdfminer_six { };
315315
316316 plantuml = callPackage ../tools/misc/plantuml { };
317317
@@ -3784,28 +3784,6 @@ in {
37843784 };
37853785 };
37863786
3787−
3788− pdfminer = buildPythonPackage rec {
3789− version = "20140328";
3790− name = "pdfminer-${version}";
3791−
3792− disabled = ! isPy27;
3793−
3794− src = pkgs.fetchurl {
3795− url = "mirror://pypi/p/pdfminer/pdfminer-${version}.tar.gz";
3796− sha256 = "0qpjv4b776dwvpf5a7v19g41qsz97bv0qqsyvm7a31k50n9pn65s";
3797− };
3798−
3799− propagatedBuildInputs = with self; [ ];
3800−
3801− meta = {
3802− description = "Tool for extracting information from PDF documents";
3803− homepage = http://euske.github.io/pdfminer/index.html;
3804− license = licenses.mit;
3805− maintainers = with maintainers; [ ];
3806− };
3807− };
3808−
38093787 peppercorn = buildPythonPackage rec {
38103788 name = "peppercorn-0.5";
38113789