python3Packages.kmock: init at 0.6
This commit is contained in:
@@ -0,0 +1,78 @@
|
||||
{
|
||||
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 ];
|
||||
};
|
||||
})
|
||||
@@ -8289,6 +8289,8 @@ self: super: with self; {
|
||||
|
||||
kml2geojson = callPackage ../development/python-modules/kml2geojson { };
|
||||
|
||||
kmock = callPackage ../development/python-modules/kmock { };
|
||||
|
||||
kmsxx = toPythonModule (
|
||||
pkgs.kmsxx.override {
|
||||
withPython = true;
|
||||
|
||||
Reference in New Issue
Block a user