Something went wrong. Try again.
lol
Something went wrong. Try again.
1.4 kB · 78 lines
Nix
at master
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879{ lib, buildPythonPackage, fetchFromGitHub,
# build-system setuptools, setuptools-scm,
# dependencies aiohttp, attrs, jsonpatch, yarl, typing-extensions,
# tests pytestCheckHook, pytest-asyncio, looptime, aresponses,}:
buildPythonPackage (finalAttrs: { pname = "kmock"; version = "0.6"; pyproject = true;
src = fetchFromGitHub { owner = "nolar"; repo = "kmock"; tag = finalAttrs.version; hash = "sha256-qpRuSWwaPEgfE+wN1ADSyn2AbXPDzZfZ7dOf8Vw0zJA="; };
build-system = [ setuptools setuptools-scm ];
dependencies = [ aiohttp attrs jsonpatch yarl typing-extensions ];
pythonImportsCheck = [ "kmock" ];
nativeCheckInputs = [ pytestCheckHook pytest-asyncio aresponses looptime ];
disabledTests = [ # Could not contact DNS servers "test_bare_host_resolution" # Cannot connect to host clients3.google.com "test_hostname_interception" # Timeout "test_arbitrary_stream" "test_kubernetes_watch_stream" # assert 0 == 1 "test_sync_condition_notifying" ];
__darwinAllowLocalNetworking = true;
meta = { description = "HTTP/API/Kubernetes Mock Server in Python"; changelog = "https://github.com/nolar/kmock/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ sigmanificient ]; };})