fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
36 lines
706 B
Nix
36 lines
706 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
glibcLocales,
|
|
python,
|
|
tqdm,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pypdf3";
|
|
version = "1.0.6";
|
|
format = "setuptools";
|
|
|
|
src = fetchPypi {
|
|
pname = "PyPDF3";
|
|
inherit version;
|
|
hash = "sha256-yUbzJzQZ43JY415yJz9JkEqxVyPYenYcERXvmXmfjF8=";
|
|
};
|
|
|
|
LC_ALL = "en_US.UTF-8";
|
|
buildInputs = [ glibcLocales ];
|
|
|
|
checkPhase = ''
|
|
${python.interpreter} -m unittest tests/*.py
|
|
'';
|
|
|
|
propagatedBuildInputs = [ tqdm ];
|
|
|
|
meta = with lib; {
|
|
description = "A Pure-Python library built as a PDF toolkit";
|
|
homepage = "https://github.com/sfneal/PyPDF3";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ ambroisie ];
|
|
};
|
|
}
|