2019-12-15 09:20:00 +00:00
|
|
|
{ stdenv, buildPythonPackage, fetchFromGitHub, isPy3k, six, pycryptodome, chardet, nose, sortedcontainers }:
|
2018-05-29 00:15:40 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pdfminer_six";
|
2019-12-15 09:20:00 +00:00
|
|
|
version = "20191020";
|
2018-05-29 00:15:40 +00:00
|
|
|
|
2019-12-15 09:20:00 +00:00
|
|
|
# No tests in PyPi Tarball
|
2018-05-29 00:15:40 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pdfminer";
|
|
|
|
repo = "pdfminer.six";
|
2019-09-08 23:38:31 +00:00
|
|
|
rev = version;
|
2019-12-15 09:20:00 +00:00
|
|
|
sha256 = "1fqn4ilcscvw6ws9a1yqiprha9d3rgw3d0280clkbk6s4l26wm9h";
|
2018-05-29 00:15:40 +00:00
|
|
|
};
|
|
|
|
|
2019-12-15 09:20:00 +00:00
|
|
|
propagatedBuildInputs = [ six pycryptodome sortedcontainers ]
|
|
|
|
++ stdenv.lib.optionals isPy3k [ chardet ];
|
2019-03-13 01:55:52 +00:00
|
|
|
|
2019-12-15 09:20:00 +00:00
|
|
|
checkInputs = [ nose ];
|
2018-05-29 00:15:40 +00:00
|
|
|
checkPhase = ''
|
2019-12-15 09:20:00 +00:00
|
|
|
nosetests
|
2018-05-29 00:15:40 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|