Something went wrong. Try again.
lol
Something went wrong. Try again.
1.9 kB · 98 lines
Nix
at master
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899{ lib, fetchFromGitHub, buildPythonPackage, pytestCheckHook,
setuptools, setuptools-scm, pyyaml, aiohttp, iso8601, python-json-logger, click,
jsonpatch, kmock, pytest-mock, pytest-timeout, pytest-asyncio, pyngrok, freezegun, certvalidator, aresponses, looptime,}:
buildPythonPackage rec { pname = "kopf"; version = "1.44.5"; pyproject = true;
src = fetchFromGitHub { owner = "nolar"; repo = "kopf"; tag = version; hash = "sha256-iwAq06qXtD3c0otC1S9TfRPDpc54y/NJQpJ7X8dCgGI="; };
build-system = [ setuptools setuptools-scm ];
dependencies = [ pyyaml python-json-logger aiohttp iso8601 jsonpatch click ];
nativeCheckInputs = [ pytestCheckHook pyngrok pytest-timeout pytest-asyncio pytest-mock kmock freezegun certvalidator aresponses looptime ];
disabledTestPaths = [ # Module astpath unavailable in nixpkgs "tests/admission/test_certificates.py" "tests/e2e/test_examples.py"
# Module certbuilder unavailable in nixpkgs "tests/admission/test_webhook_detection.py" "tests/admission/test_webhook_ngrok.py" "tests/admission/test_webhook_server.py" "tests/authentication/test_credentials.py" ];
disabledTests = [ # assert [] to due missing certificate "test_connection_info_as_ssl_context_when_insecure" ];
pytestFlags = [ "-Wignore::pytest.PytestUnraisableExceptionWarning" ];
__darwinAllowLocalNetworking = true;
pythonImportsCheck = [ "kopf" ];
meta = { description = "Python framework to write Kubernetes operators"; homepage = "https://kopf.readthedocs.io/"; changelog = "https://github.com/nolar/kopf/releases/tag/${src.tag}"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ genga898 ]; };}