nixpkgs/pkgs/development/python-modules/pdfminer_six/default.nix

31 lines
764 B
Nix
Raw Normal View History

2020-07-21 04:54:43 +01:00
{ 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";
2019-09-09 00:38:31 +01:00
rev = version;
sha256 = "1hlaz7ax1czb028x3nhk3l2jy07f26q5hbhmdirljaaga24vd96z";
};
2020-07-21 04:54:43 +01:00
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 ];
};
}