depot/third_party/nixpkgs/pkgs/development/python-modules/pdfminer_six/default.nix
Default email ae91cbe6cc Project import generated by Copybara.
GitOrigin-RevId: 536fe36e23ab0fc8b7f35c24603422eee9fc17a2
2021-02-05 18:12:51 +01:00

30 lines
754 B
Nix

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