diff options
author | Mario Rodas <marsam@users.noreply.github.com> | 2020-04-02 08:26:40 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-02 08:26:40 -0500 |
commit | 0b68f2ef09fce1427deafa2c2933068d4187f959 (patch) | |
tree | 619548b104288a57c69748fdd1b3cfc091adff0d /pkgs/development/python-modules | |
parent | 46d919f5788fec426ed7ea029e5566a696ce4794 (diff) | |
parent | 899c35ccc1859b2568c8ef1c9138318dd1d82c50 (diff) | |
download | nixlib-0b68f2ef09fce1427deafa2c2933068d4187f959.tar nixlib-0b68f2ef09fce1427deafa2c2933068d4187f959.tar.gz nixlib-0b68f2ef09fce1427deafa2c2933068d4187f959.tar.bz2 nixlib-0b68f2ef09fce1427deafa2c2933068d4187f959.tar.lz nixlib-0b68f2ef09fce1427deafa2c2933068d4187f959.tar.xz nixlib-0b68f2ef09fce1427deafa2c2933068d4187f959.tar.zst nixlib-0b68f2ef09fce1427deafa2c2933068d4187f959.zip |
Merge pull request #84066 from marsam/update-pdfminer
python3Packages.pdfminer: 20191020 -> 20200402
Diffstat (limited to 'pkgs/development/python-modules')
-rw-r--r-- | pkgs/development/python-modules/pdfminer_six/default.nix | 24 |
1 files changed, 17 insertions, 7 deletions
diff --git a/pkgs/development/python-modules/pdfminer_six/default.nix b/pkgs/development/python-modules/pdfminer_six/default.nix index 5f3cc06b5af5..ace2b618ef22 100644 --- a/pkgs/development/python-modules/pdfminer_six/default.nix +++ b/pkgs/development/python-modules/pdfminer_six/default.nix @@ -1,19 +1,29 @@ -{ stdenv, buildPythonPackage, fetchFromGitHub, isPy3k, six, pycryptodome, chardet, nose, sortedcontainers }: +{ stdenv, buildPythonPackage, fetchFromGitHub, isPy3k, pycryptodome, chardet, nose, sortedcontainers, fetchpatch }: buildPythonPackage rec { pname = "pdfminer_six"; - version = "20191020"; + version = "20200402"; + + disabled = !isPy3k; # No tests in PyPi Tarball src = fetchFromGitHub { owner = "pdfminer"; repo = "pdfminer.six"; rev = version; - sha256 = "1fqn4ilcscvw6ws9a1yqiprha9d3rgw3d0280clkbk6s4l26wm9h"; + sha256 = "1wl64r3ifpwi7mm5pcxc0ji7w380nxcq3zrv66n95lglm4zqkf26"; }; - propagatedBuildInputs = [ six pycryptodome sortedcontainers ] - ++ stdenv.lib.optionals isPy3k [ chardet ]; + patches = [ + # Add shebang line to scripts. See: https://github.com/pdfminer/pdfminer.six/pull/408 + (fetchpatch { + url = "https://github.com/pdfminer/pdfminer.six/commit/0c2f44b6de064d9a3cea99bde5b8e9c6a525a69c.patch"; + sha256 = "1vml66grnvg4g26mya24kiyxsz809d4mr7wz8qmawjbn4ss65y21"; + excludes = [ "CHANGELOG.md" ]; + }) + ]; + + propagatedBuildInputs = [ chardet pycryptodome sortedcontainers ]; checkInputs = [ nose ]; checkPhase = '' @@ -21,8 +31,8 @@ buildPythonPackage rec { ''; meta = with stdenv.lib; { - description = "fork of PDFMiner using six for Python 2+3 compatibility"; - homepage = https://github.com/pdfminer/pdfminer.six; + description = "PDF parser and analyzer"; + homepage = "https://github.com/pdfminer/pdfminer.six"; license = licenses.mit; maintainers = with maintainers; [ psyanticy marsam ]; }; |