depot/third_party/nixpkgs/pkgs/development/python-modules/pypdf2/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

41 lines
829 B
Nix

{
buildPythonPackage,
fetchPypi,
flit-core,
lib,
pythonOlder,
typing-extensions,
}:
buildPythonPackage rec {
pname = "pypdf2";
version = "3.0.1";
pyproject = true;
src = fetchPypi {
pname = "PyPDF2";
inherit version;
hash = "sha256-p0QI9pumJx9xuTUu9O0D3FOjGqQE0ptdMfU7/s/uFEA=";
};
nativeBuildInputs = [ flit-core ];
dependencies = lib.optionals (pythonOlder "3.10") [ typing-extensions ];
# no test
doCheck = false;
pythonImportsCheck = [ "PyPDF2" ];
meta = with lib; {
description = "Pure-Python library built as a PDF toolkit";
homepage = "https://pypdf2.readthedocs.io/";
changelog = "https://github.com/py-pdf/PyPDF2/raw/${version}/CHANGELOG.md";
license = licenses.bsd3;
maintainers = with maintainers; [
desiderius
vrthra
];
};
}