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