Merge pull request #119126 from fabaff/pycomfoconnect
[NixPkgs.git] / pkgs / development / python-modules / pdfminer_six / default.nix
blob96ba66869055dbf47666d169d0710593855f9fcf
1 { lib, buildPythonPackage, fetchFromGitHub, isPy3k, cryptography, chardet, nose, sortedcontainers }:
3 buildPythonPackage rec {
4   pname = "pdfminer_six";
5   version = "20201018";
7   disabled = !isPy3k;
9   # No tests in PyPi Tarball
10   src = fetchFromGitHub {
11     owner = "pdfminer";
12     repo = "pdfminer.six";
13     rev = version;
14     sha256 = "1a2fxxnnjqbx344znpvx7cnv1881dk6585ibw01inhfq3w6yj2lr";
15   };
17   propagatedBuildInputs = [ chardet cryptography sortedcontainers ];
19   checkInputs = [ nose ];
20   checkPhase = ''
21     nosetests
22   '';
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   };