1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 hatchling, 6 babel, 7 typing-extensions, 8}: 9 10buildPythonPackage 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; [ ]; 37 }; 38}