package.nix (683B)
1 { 2 lib, 3 fetchFromGitHub, 4 python3Packages, 5 }: 6 7 python3Packages.buildPythonApplication (finalAttrs: { 8 pname = "nginxfmt"; 9 version = "1.4.0"; 10 pyproject = true; 11 12 src = fetchFromGitHub { 13 owner = "slomkowski"; 14 repo = "nginx-config-formatter"; 15 tag = "v${finalAttrs.version}"; 16 hash = "sha256-HB1knL/q1G2z6RyVCsOyIKpp4O6x68/93ccvox1FKGQ="; 17 }; 18 19 build-system = with python3Packages; [ poetry-core ]; 20 21 meta = { 22 description = "nginx config file formatter/beautifier"; 23 homepage = "https://github.com/slomkowski/nginx-config-formatter"; 24 license = lib.licenses.asl20; 25 maintainers = [ lib.maintainers.sikmir ]; 26 mainProgram = "nginxfmt"; 27 }; 28 })
