mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 14:13:35 +00:00
37 lines
681 B
Nix
37 lines
681 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, glibcLocales
|
|
, python
|
|
, tqdm
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pypdf3";
|
|
version = "1.0.6";
|
|
|
|
src = fetchPypi {
|
|
pname = "PyPDF3";
|
|
inherit version;
|
|
sha256 = "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 ];
|
|
};
|
|
}
|