2021-01-25 08:26:54 +00:00
|
|
|
{ lib, buildPythonPackage, fetchFromGitHub, isPy3k, cryptography, chardet, nose, sortedcontainers }:
|
2018-05-29 01:15:40 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pdfminer_six";
|
2020-10-18 05:20:00 +01:00
|
|
|
version = "20201018";
|
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-10-18 05:20:00 +01:00
|
|
|
sha256 = "1a2fxxnnjqbx344znpvx7cnv1881dk6585ibw01inhfq3w6yj2lr";
|
2018-05-29 01:15:40 +01:00
|
|
|
};
|
|
|
|
|
2020-07-21 04:54:43 +01:00
|
|
|
propagatedBuildInputs = [ chardet cryptography 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
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with 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
|
|
|
};
|
|
|
|
}
|