75 lines
1.4 KiB
Nix
75 lines
1.4 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
pythonAtLeast,
|
|
flit-core,
|
|
gevent,
|
|
mock,
|
|
psutil,
|
|
pytest-cov-stub,
|
|
pytestCheckHook,
|
|
pyyaml,
|
|
pyzmq,
|
|
tornado,
|
|
}:
|
|
|
|
buildPythonPackage (finalAttrs: {
|
|
pname = "kantoku";
|
|
version = "0.18.3";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "bentoml";
|
|
repo = "kantoku";
|
|
tag = finalAttrs.version;
|
|
hash = "sha256-pI79B7TDZwL4Jz5e7PDPIf8iIGiwCOKFI2jReUt8UNg=";
|
|
};
|
|
|
|
build-system = [ flit-core ];
|
|
|
|
dependencies = [
|
|
psutil
|
|
pyzmq
|
|
tornado
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
gevent
|
|
mock
|
|
pytest-cov-stub
|
|
pytestCheckHook
|
|
pyyaml
|
|
];
|
|
|
|
pythonImportsCheck = [ "circus" ];
|
|
|
|
disabledTests = [
|
|
# AssertionError
|
|
"test_streams"
|
|
]
|
|
++ lib.optionals stdenv.hostPlatform.isDarwin [
|
|
# Assertion error when test_socketstats hits a permission error
|
|
"test_resource_watcher_max_mem"
|
|
"test_resource_watcher_max_mem_abs"
|
|
]
|
|
++ lib.optionals (pythonAtLeast "3.14") [
|
|
"test_help_invalid_command"
|
|
"test_venv"
|
|
"test_venv_site_packages"
|
|
# Times out
|
|
"test_handler"
|
|
];
|
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
meta = {
|
|
description = "A Process & Socket Manager built with zmq";
|
|
homepage = "https://github.com/bentoml/kantoku";
|
|
changelog = "https://github.com/bentoml/kantoku/releases/tag/${finalAttrs.src.tag}";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ fab ];
|
|
};
|
|
})
|