summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/hatch-babel/default.nix
blob: 83500ad98b66dee0f588b251965719edd20fa5fe (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
37
38
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  hatchling,
  babel,
  typing-extensions,
}:

buildPythonPackage rec {
  pname = "hatch-babel";
  version = "0.1.2";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "NiklasRosenstein";
    repo = "hatch-babel";
    tag = version;
    hash = "sha256-qAVuT3NuHAh1ELWzBT3/kvrDdSHqdy/YINCfKgpSk8g=";
  };

  build-system = [ hatchling ];

  dependencies = [
    babel
    typing-extensions
  ];

  pythonImportsCheck = [ "hatch_babel" ];

  meta = {
    description = "Hatch build-hook to compile Babel *.po files to *.mo files at build time";
    homepage = "https://github.com/NiklasRosenstein/hatch-babel";
    changelog = "https://github.com/NiklasRosenstein/hatch-babel/blob/${src.tag}/.changelog/${src.tag}.toml";
    license = lib.licenses.mit;
    maintainers = [ ];
  };
}