Skip to content

Commit

Permalink
Merge pull request #264721 from natsukium/jinja2-pluralize
Browse files Browse the repository at this point in the history
python311Packages.jinja2-pluralize: rename from jinja2_pluralize
  • Loading branch information
mweinelt committed Nov 1, 2023
2 parents 5363991 + 39a33ec commit 595d107
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 7 deletions.
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/diff-cover/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
, chardet
, fetchPypi
, jinja2
, jinja2_pluralize
, jinja2-pluralize
, pluggy
, pycodestyle
, pyflakes
Expand Down Expand Up @@ -32,7 +32,7 @@ buildPythonPackage rec {
propagatedBuildInputs = [
chardet
jinja2
jinja2_pluralize
jinja2-pluralize
pluggy
pygments
tomli
Expand Down
Original file line number Diff line number Diff line change
@@ -1,19 +1,34 @@
{ lib, buildPythonPackage, fetchPypi, jinja2, inflect }:
{ lib
, buildPythonPackage
, fetchPypi
, jinja2
, inflect
, pytestCheckHook
}:

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

src = fetchPypi {
inherit pname version;
sha256 = "071wnzzz20wjb0iw7grxgj1lb2f0kz50qyfbcq54rddr2x82sp6z";
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";
Expand Down
1 change: 1 addition & 0 deletions pkgs/top-level/python-aliases.nix
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ mapAliases ({
jaraco_text = jaraco-text; # added 2023-07-14
jaraco_stream = jaraco-stream; # added 2023-07-14
JayDeBeApi = jaydebeapi; # added 2023-02-19
jinja2_pluralize = jinja2-pluralize; # added 2023-11-01
jinja2_time = jinja2-time; # added 2022-11-07
JPype1 = jpype1; # added 2023-02-19
jsonschema_3 = throw "jsonschema 3 is neither the latest version nor needed inside nixpkgs anymore"; # added 2023-06-28
Expand Down
2 changes: 1 addition & 1 deletion pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5637,7 +5637,7 @@ self: super: with self; {

jinja2-git = callPackage ../development/python-modules/jinja2-git { };

jinja2_pluralize = callPackage ../development/python-modules/jinja2_pluralize { };
jinja2-pluralize = callPackage ../development/python-modules/jinja2-pluralize { };

jinja2-time = callPackage ../development/python-modules/jinja2-time { };

Expand Down

0 comments on commit 595d107

Please sign in to comment.