Skip to content

Commit 1fcc0d9

Browse files
emarynemaryn
authored andcommitted
python312Packages.hatch-babel: init at 0.1.2
1 parent f2acf15 commit 1fcc0d9

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
lib,
3+
buildPythonPackage,
4+
fetchFromGitHub,
5+
hatchling,
6+
babel,
7+
typing-extensions,
8+
}:
9+
10+
buildPythonPackage rec {
11+
pname = "hatch-babel";
12+
version = "0.1.2";
13+
pyproject = true;
14+
15+
src = fetchFromGitHub {
16+
owner = "NiklasRosenstein";
17+
repo = "hatch-babel";
18+
tag = version;
19+
hash = "sha256-qAVuT3NuHAh1ELWzBT3/kvrDdSHqdy/YINCfKgpSk8g=";
20+
};
21+
22+
build-system = [ hatchling ];
23+
24+
dependencies = [
25+
babel
26+
typing-extensions
27+
];
28+
29+
pythonImportsCheck = [ "hatch_babel" ];
30+
31+
meta = {
32+
description = "Hatch build-hook to compile Babel *.po files to *.mo files at build time";
33+
homepage = "https://github.com/NiklasRosenstein/hatch-babel";
34+
changelog = "https://github.com/NiklasRosenstein/hatch-babel/blob/${src.tag}/.changelog/${src.tag}.toml";
35+
license = lib.licenses.mit;
36+
maintainers = with lib.maintainers; [ dotlambda ];
37+
};
38+
}

pkgs/top-level/python-packages.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5868,6 +5868,8 @@ self: super: with self; {
58685868

58695869
hatchling = callPackage ../development/python-modules/hatchling { };
58705870

5871+
hatch-babel = callPackage ../development/python-modules/hatch-babel { };
5872+
58715873
hatch-fancy-pypi-readme = callPackage ../development/python-modules/hatch-fancy-pypi-readme { };
58725874

58735875
hatch-jupyter-builder = callPackage ../development/python-modules/hatch-jupyter-builder { };

0 commit comments

Comments
 (0)