1{ lib 2, buildPythonPackage 3, fetchPypi 4, glibcLocales 5, python 6, tqdm 7}: 8 9buildPythonPackage rec { 10 pname = "pypdf3"; 11 version = "1.0.6"; 12 13 src = fetchPypi { 14 pname = "PyPDF3"; 15 inherit version; 16 sha256 = "sha256-yUbzJzQZ43JY415yJz9JkEqxVyPYenYcERXvmXmfjF8="; 17 }; 18 19 LC_ALL = "en_US.UTF-8"; 20 buildInputs = [ glibcLocales ]; 21 22 checkPhase = '' 23 ${python.interpreter} -m unittest tests/*.py 24 ''; 25 26 propagatedBuildInputs = [ 27 tqdm 28 ]; 29 30 meta = with lib; { 31 description = "A Pure-Python library built as a PDF toolkit"; 32 homepage = "https://github.com/sfneal/PyPDF3"; 33 license = licenses.bsd3; 34 maintainers = with maintainers; [ ambroisie ]; 35 }; 36}