1{ stdenv, buildPythonPackage, fetchFromGitHub, isPy3k, cryptography, chardet, nose, sortedcontainers }:
2
3buildPythonPackage rec {
4 pname = "pdfminer_six";
5 version = "20200726";
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 = "1hlaz7ax1czb028x3nhk3l2jy07f26q5hbhmdirljaaga24vd96z";
15 };
16
17 propagatedBuildInputs = [ chardet cryptography sortedcontainers ];
18
19 checkInputs = [ nose ];
20 checkPhase = ''
21 nosetests
22 '';
23
24 meta = with stdenv.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}