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