Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.5 kB · 80 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081{ buildPythonPackage, fetchFromGitHub, lib, click, essentials, flask, hatchling, httpx, jinja2, markupsafe, pydantic, pytestCheckHook, pyyaml, rich, setuptools, stdenv,}:buildPythonPackage rec { pname = "essentials-openapi"; version = "1.2.0"; pyproject = true;
src = fetchFromGitHub { owner = "Neoteroi"; repo = "essentials-openapi"; tag = "v${version}"; hash = "sha256-aag66YafLDSLBcXyRNcTyiqf3U4hx2gjimxhKVns/zc="; };
nativeBuildInputs = [ hatchling ];
nativeCheckInputs = [ flask httpx pydantic pytestCheckHook rich setuptools ];
propagatedBuildInputs = [ pyyaml essentials markupsafe ];
optional-dependencies = { full = [ click jinja2 rich httpx ]; };
pythonRelaxDeps = [ "markupsafe" ];
pythonImportsCheck = [ "openapidocs" ];
disabledTestPaths = lib.optionals stdenv.hostPlatform.isDarwin [ # These tests start a server using a hardcoded port, and since # multiple Python versions are always built simultaneously, this # failure is quite likely to occur. "tests/test_cli.py" ];
meta = { homepage = "https://github.com/Neoteroi/essentials-openapi"; description = "Functions to handle OpenAPI Documentation"; changelog = "https://github.com/Neoteroi/essentials-openapi/releases/${src.tag}"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ aldoborrero zimbatm ]; };}