python312Packages.fnllm: 0.0.11 -> 0.0.12 (#364582)
[NixPkgs.git] / pkgs / development / python-modules / pypdf2 / default.nix
blobd8bea0dbf51de3b7d51530d562ab3e15a8379132
2   buildPythonPackage,
3   fetchPypi,
4   flit-core,
5   lib,
6   pythonOlder,
7   typing-extensions,
8 }:
10 buildPythonPackage rec {
11   pname = "pypdf2";
12   version = "3.0.1";
14   pyproject = true;
16   src = fetchPypi {
17     pname = "PyPDF2";
18     inherit version;
19     hash = "sha256-p0QI9pumJx9xuTUu9O0D3FOjGqQE0ptdMfU7/s/uFEA=";
20   };
22   nativeBuildInputs = [ flit-core ];
24   dependencies = lib.optionals (pythonOlder "3.10") [ typing-extensions ];
26   # no test
27   doCheck = false;
29   pythonImportsCheck = [ "PyPDF2" ];
31   meta = with lib; {
32     description = "Pure-Python library built as a PDF toolkit";
33     homepage = "https://pypdf2.readthedocs.io/";
34     changelog = "https://github.com/py-pdf/PyPDF2/raw/${version}/CHANGELOG.md";
35     license = licenses.bsd3;
36     maintainers = with maintainers; [
37       desiderius
38     ];
39   };