3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/pdfminer_six/default.nix
Ivan Kozik 78167a293b pythonPackages.pdfminer_six: 20200720 -> 20200726
ocrmypdf 11.0.1 requires pdfminer_six 20200726
2020-08-31 16:59:24 -07:00

31 lines
764 B
Nix

{ stdenv, buildPythonPackage, fetchFromGitHub, isPy3k, cryptography, chardet, nose, sortedcontainers }:
buildPythonPackage rec {
pname = "pdfminer_six";
version = "20200726";
disabled = !isPy3k;
# No tests in PyPi Tarball
src = fetchFromGitHub {
owner = "pdfminer";
repo = "pdfminer.six";
rev = version;
sha256 = "1hlaz7ax1czb028x3nhk3l2jy07f26q5hbhmdirljaaga24vd96z";
};
propagatedBuildInputs = [ chardet cryptography sortedcontainers ];
checkInputs = [ nose ];
checkPhase = ''
nosetests
'';
meta = with stdenv.lib; {
description = "PDF parser and analyzer";
homepage = "https://github.com/pdfminer/pdfminer.six";
license = licenses.mit;
maintainers = with maintainers; [ psyanticy marsam ];
};
}