1{ stdenv, buildPythonPackage, python, fetchFromGitHub, six, pycryptodome, chardet, nose, pytest }: 2 3buildPythonPackage rec { 4 pname = "pdfminer_six"; 5 version = "20170720"; 6 7 src = fetchFromGitHub { 8 owner = "pdfminer"; 9 repo = "pdfminer.six"; 10 rev = "${version}"; 11 sha256 = "0vax5k0a8qn8x86ybpzqydk7x3hajsk8b6xf3y610j19mgag6wvs"; 12 }; 13 14 propagatedBuildInputs = [ six pycryptodome chardet ]; 15 16 checkInputs = [ nose pytest ]; 17 checkPhase = '' 18 ${python.interpreter} -m pytest 19 ''; 20 21 meta = with stdenv.lib; { 22 description = "fork of PDFMiner using six for Python 2+3 compatibility"; 23 homepage = https://github.com/pdfminer/pdfminer.six; 24 license = licenses.mit; 25 maintainers = with maintainers; [ psyanticy ]; 26 }; 27} 28