2020-05-17 16:56:00 +01:00
|
|
|
{ stdenv, buildPythonPackage, fetchFromGitHub, isPy3k, pycryptodome, chardet, nose, sortedcontainers }:
|
2018-05-29 01:15:40 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pdfminer_six";
|
2020-05-17 16:56:00 +01:00
|
|
|
version = "20200517";
|
2020-04-01 10:20:00 +01:00
|
|
|
|
|
|
|
disabled = !isPy3k;
|
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;
|
2020-05-17 16:56:00 +01:00
|
|
|
sha256 = "00272pxkh6djm37yvlvgd06w7ycf35srwk6n3p58ppw5hgmpkhc2";
|
2018-05-29 01:15:40 +01:00
|
|
|
};
|
|
|
|
|
2020-04-01 10:20:00 +01:00
|
|
|
propagatedBuildInputs = [ chardet pycryptodome sortedcontainers ];
|
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; {
|
2020-04-01 10:20:00 +01:00
|
|
|
description = "PDF parser and analyzer";
|
|
|
|
homepage = "https://github.com/pdfminer/pdfminer.six";
|
2018-05-29 01:15:40 +01:00
|
|
|
license = licenses.mit;
|
2019-12-15 09:21:00 +00:00
|
|
|
maintainers = with maintainers; [ psyanticy marsam ];
|
2018-05-29 01:15:40 +01:00
|
|
|
};
|
|
|
|
}
|