summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/pypdf3/default.nix
blob: 78b230965674a8cb87d88185850aac513360131b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{
  lib,
  buildPythonPackage,
  fetchPypi,
  glibcLocales,
  python,
  tqdm,
}:

buildPythonPackage (finalAttrs: {
  pname = "pypdf3";
  version = "1.0.6";
  format = "setuptools";

  src = fetchPypi {
    pname = "PyPDF3";
    inherit (finalAttrs) version;
    hash = "sha256-yUbzJzQZ43JY415yJz9JkEqxVyPYenYcERXvmXmfjF8=";
  };

  LC_ALL = "en_US.UTF-8";
  buildInputs = [ glibcLocales ];

  checkPhase = ''
    ${python.interpreter} -m unittest tests/*.py
  '';

  propagatedBuildInputs = [ tqdm ];

  meta = {
    description = "Pure-Python library built as a PDF toolkit";
    homepage = "https://github.com/sfneal/PyPDF3";
    license = lib.licenses.bsd3;
    maintainers = with lib.maintainers; [ ambroisie ];
  };
})