Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.09 28 lines 782 B view raw
1{ stdenv, buildPythonPackage, python, fetchFromGitHub, six, pycryptodome, chardet, nose, pytest, sortedcontainers }: 2 3buildPythonPackage rec { 4 pname = "pdfminer_six"; 5 version = "20181108"; 6 7 src = fetchFromGitHub { 8 owner = "pdfminer"; 9 repo = "pdfminer.six"; 10 rev = version; 11 sha256 = "1v8pcx43fgidv1g54s92k85anvcss08blkhm4yi1hn1ybl0mmw6c"; 12 }; 13 14 propagatedBuildInputs = [ six pycryptodome chardet sortedcontainers ]; 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