summary refs log tree commit diff
diff options
context:
space:
mode:
authorAssassinkin <iuns@outlook.fr>2018-05-29 13:30:41 +0100
committerAssassinkin <iuns@outlook.fr>2018-05-29 13:33:23 +0100
commita3caa7bd05f7a5070a02efa49eb7fd806b73b549 (patch)
treee9ac38510425125d02cdcd09933dd70ea1a54f14
parentb37cb1de2b6051a3b65fb14e22ca10a30fb5955d (diff)
downloadnixpkgs-a3caa7bd05f7a5070a02efa49eb7fd806b73b549.tar
nixpkgs-a3caa7bd05f7a5070a02efa49eb7fd806b73b549.tar.gz
nixpkgs-a3caa7bd05f7a5070a02efa49eb7fd806b73b549.tar.bz2
nixpkgs-a3caa7bd05f7a5070a02efa49eb7fd806b73b549.tar.lz
nixpkgs-a3caa7bd05f7a5070a02efa49eb7fd806b73b549.tar.xz
nixpkgs-a3caa7bd05f7a5070a02efa49eb7fd806b73b549.tar.zst
nixpkgs-a3caa7bd05f7a5070a02efa49eb7fd806b73b549.zip
pythonPackages.pdfminer: replacing pdfminer with pdfminer_six
-rw-r--r--pkgs/development/python-modules/pdfminer_six/default.nix10
-rw-r--r--pkgs/top-level/python-packages.nix24
2 files changed, 3 insertions, 31 deletions
diff --git a/pkgs/development/python-modules/pdfminer_six/default.nix b/pkgs/development/python-modules/pdfminer_six/default.nix
index 462c4d55856..71d439d4c20 100644
--- a/pkgs/development/python-modules/pdfminer_six/default.nix
+++ b/pkgs/development/python-modules/pdfminer_six/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, buildPythonPackage, fetchFromGitHub, six, pycryptodome, chardet, nose, pytest }:
+{ stdenv, buildPythonPackage, python, fetchFromGitHub, six, pycryptodome, chardet, nose, pytest }:
 
 buildPythonPackage rec {
   pname = "pdfminer_six";
@@ -15,13 +15,7 @@ buildPythonPackage rec {
   
   checkInputs = [ nose pytest ];
   checkPhase = ''
-    # some crappy hack to ensure the test do not fail for python3
-    # for some reason importing from the folder tools fails :\
-    cp tools/dumppdf.py tests/
-    cp tools/pdf2txt.py tests/
-    sed -i '/from tools import dumppdf/c\    import dumppdf' tests/test_tools_dumppdf.py
-    sed -i '/import tools.pdf2txt as pdf2txt/c\import pdf2txt as pdf2txt' tests/test_tools_pdf2txt.py
-    pytest
+    ${python.interpreter} -m pytest
   '';
 
   meta = with stdenv.lib; {
diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix
index 4d926cb2289..f02a44d925a 100644
--- a/pkgs/top-level/python-packages.nix
+++ b/pkgs/top-level/python-packages.nix
@@ -311,7 +311,7 @@ in {
 
   outcome = callPackage ../development/python-modules/outcome {};
 
-  pdfminer_six = callPackage ../development/python-modules/pdfminer_six { };
+  pdfminer = callPackage ../development/python-modules/pdfminer_six { };
 
   plantuml = callPackage ../tools/misc/plantuml { };
 
@@ -3784,28 +3784,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";