1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/python-modules/pdfminer_six/default.nix
2019-03-12 22:13:03 -04:00

29 lines
787 B
Nix

{ stdenv, buildPythonPackage, python, fetchFromGitHub, six, pycryptodome, chardet, nose, pytest, sortedcontainers }:
buildPythonPackage rec {
pname = "pdfminer_six";
version = "20181108";
src = fetchFromGitHub {
owner = "pdfminer";
repo = "pdfminer.six";
rev = "${version}";
sha256 = "1v8pcx43fgidv1g54s92k85anvcss08blkhm4yi1hn1ybl0mmw6c";
};
propagatedBuildInputs = [ six pycryptodome chardet sortedcontainers ];
checkInputs = [ nose pytest ];
checkPhase = ''
${python.interpreter} -m pytest
'';
meta = with stdenv.lib; {
description = "fork of PDFMiner using six for Python 2+3 compatibility";
homepage = https://github.com/pdfminer/pdfminer.six;
license = licenses.mit;
maintainers = with maintainers; [ psyanticy ];
};
}