1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-06-30 21:15:21 +03:00
nixpkgs/pkgs/development/python-modules/pypdf2/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

41 lines
849 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchPypi
2022-07-25 01:02:21 +02:00
, pythonOlder
, glibcLocales
2022-07-25 01:02:21 +02:00
, typing-extensions
, unittestCheckHook
}:
buildPythonPackage rec {
pname = "PyPDF2";
version = "2.11.1";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-PHut1RLCFxHrF4nC6tv5YnkonA+URS7lSoZHO/vv1zI=";
};
LC_ALL = "en_US.UTF-8";
buildInputs = [ glibcLocales ];
2022-07-25 01:02:21 +02:00
propagatedBuildInputs = lib.optionals (pythonOlder "3.10") [
typing-extensions
];
checkInputs = [ unittestCheckHook ];
pythonImportsCheck = [
"PyPDF2"
];
meta = with lib; {
description = "A Pure-Python library built as a PDF toolkit";
2022-09-14 12:19:36 +02:00
homepage = "https://pypdf2.readthedocs.io/";
2022-09-18 10:49:00 +00:00
changelog = "https://github.com/py-pdf/PyPDF2/raw/${version}/CHANGELOG.md";
license = licenses.bsd3;
maintainers = with maintainers; [ desiderius vrthra ];
};
}