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