2019-03-13 01:55:52 +00:00
|
|
|
{ stdenv, buildPythonPackage, python, fetchFromGitHub, six, pycryptodome, chardet, nose, pytest, sortedcontainers }:
|
2018-05-29 01:15:40 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pdfminer_six";
|
2019-03-13 01:55:52 +00:00
|
|
|
version = "20181108";
|
2018-05-29 01:15:40 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pdfminer";
|
|
|
|
repo = "pdfminer.six";
|
|
|
|
rev = "${version}";
|
2019-03-13 01:55:52 +00:00
|
|
|
sha256 = "1v8pcx43fgidv1g54s92k85anvcss08blkhm4yi1hn1ybl0mmw6c";
|
2018-05-29 01:15:40 +01:00
|
|
|
};
|
|
|
|
|
2019-03-13 01:55:52 +00:00
|
|
|
propagatedBuildInputs = [ six pycryptodome chardet sortedcontainers ];
|
|
|
|
|
2018-05-29 01:15:40 +01:00
|
|
|
checkInputs = [ nose pytest ];
|
|
|
|
checkPhase = ''
|
2018-05-29 13:30:41 +01:00
|
|
|
${python.interpreter} -m pytest
|
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;
|
|
|
|
maintainers = with maintainers; [ psyanticy ];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|