python3Packages.ngxparse: init at 0.5.16

Assisted-by: Claude Code (Claude Opus 5.5)
This commit is contained in:
Danila Vershinin
2026-09-28 17:00:42 +07:00
parent e64237c687
commit a735fa0084
2 changed files with 38 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "ngxparse";
version = "0.5.16";
pyproject = true;
# Fetching from GitHub because the PyPI sdist is missing the test fixtures
src = fetchFromGitHub {
owner = "dvershinin";
repo = "crossplane";
tag = "v${version}";
hash = "sha256-gXzVjY89YjppneR9Vuce+V+RKIcbIBEvLeAoI54ZegM=";
};
build-system = [ setuptools ];
nativeCheckInputs = [ pytestCheckHook ];
# The ngxparse distribution ships its importable module as `crossplane`
# (it's a drop-in replacement for the upstream nginxinc/crossplane).
pythonImportsCheck = [ "crossplane" ];
meta = {
description = "Reliable and fast NGINX configuration file parser (maintained fork of crossplane)";
homepage = "https://github.com/dvershinin/crossplane";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ dvershinin ];
};
}

View File

@@ -11214,6 +11214,8 @@ self: super: with self; {
nglview = callPackage ../development/python-modules/nglview { };
ngxparse = callPackage ../development/python-modules/ngxparse { };
nh3 = callPackage ../development/python-modules/nh3 { };
nhc = callPackage ../development/python-modules/nhc { };