Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.03 30 lines 820 B view raw
1{ stdenv, buildPythonPackage, fetchFromGitHub, isPy3k, six, pycryptodome, chardet, nose, sortedcontainers }: 2 3buildPythonPackage rec { 4 pname = "pdfminer_six"; 5 version = "20191020"; 6 7 # No tests in PyPi Tarball 8 src = fetchFromGitHub { 9 owner = "pdfminer"; 10 repo = "pdfminer.six"; 11 rev = version; 12 sha256 = "1fqn4ilcscvw6ws9a1yqiprha9d3rgw3d0280clkbk6s4l26wm9h"; 13 }; 14 15 propagatedBuildInputs = [ six pycryptodome sortedcontainers ] 16 ++ stdenv.lib.optionals isPy3k [ chardet ]; 17 18 checkInputs = [ nose ]; 19 checkPhase = '' 20 nosetests 21 ''; 22 23 meta = with stdenv.lib; { 24 description = "fork of PDFMiner using six for Python 2+3 compatibility"; 25 homepage = https://github.com/pdfminer/pdfminer.six; 26 license = licenses.mit; 27 maintainers = with maintainers; [ psyanticy marsam ]; 28 }; 29} 30