about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/jinja2-pluralize/default.nix
blob: 2187c1a24147bf3121443d0aa77f2433808f1fa7 (plain) (blame)
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
37
38
{ lib
, buildPythonPackage
, fetchPypi
, jinja2
, inflect
, pytestCheckHook
}:

buildPythonPackage rec {
  pname = "jinja2-pluralize";
  version = "0.3.0";

  src = fetchPypi {
    pname = "jinja2_pluralize";
    inherit version;
    hash = "sha256-31wtUBe5tUwKZst5DMqfwIlFg3w9v8MjWJID8f+3PBw=";
  };

  propagatedBuildInputs = [
    jinja2
    inflect
  ];

  nativeCheckInputs = [
    pytestCheckHook
  ];

  pythonImportsCheck = [
    "jinja2_pluralize"
  ];

  meta = with lib; {
    description = "Jinja2 pluralize filters";
    homepage = "https://github.com/audreyr/jinja2_pluralize";
    license = licenses.bsd3;
    maintainers = with maintainers; [ dzabraev ];
  };
}