diff options
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/pdfminer_six/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/pdfminer_six/default.nix | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/pdfminer_six/default.nix b/nixpkgs/pkgs/development/python-modules/pdfminer_six/default.nix index 57023e786f05..5f3cc06b5af5 100644 --- a/nixpkgs/pkgs/development/python-modules/pdfminer_six/default.nix +++ b/nixpkgs/pkgs/development/python-modules/pdfminer_six/default.nix @@ -1,28 +1,30 @@ -{ stdenv, buildPythonPackage, python, fetchFromGitHub, six, pycryptodome, chardet, nose, pytest, sortedcontainers }: +{ stdenv, buildPythonPackage, fetchFromGitHub, isPy3k, six, pycryptodome, chardet, nose, sortedcontainers }: buildPythonPackage rec { pname = "pdfminer_six"; - version = "20181108"; + version = "20191020"; + # No tests in PyPi Tarball src = fetchFromGitHub { owner = "pdfminer"; repo = "pdfminer.six"; rev = version; - sha256 = "1v8pcx43fgidv1g54s92k85anvcss08blkhm4yi1hn1ybl0mmw6c"; + sha256 = "1fqn4ilcscvw6ws9a1yqiprha9d3rgw3d0280clkbk6s4l26wm9h"; }; - propagatedBuildInputs = [ six pycryptodome chardet sortedcontainers ]; + propagatedBuildInputs = [ six pycryptodome sortedcontainers ] + ++ stdenv.lib.optionals isPy3k [ chardet ]; - checkInputs = [ nose pytest ]; + checkInputs = [ nose ]; checkPhase = '' - ${python.interpreter} -m pytest + nosetests ''; 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 ]; + maintainers = with maintainers; [ psyanticy marsam ]; }; } |