Files
nixpkgs/pkgs/development/python-modules/kantoku/default.nix
T

67 lines
1.2 KiB
Nix

{
lib,
stdenv,
buildPythonPackage,
fetchFromGitHub,
flit-core,
gevent,
mock,
psutil,
pytest-cov-stub,
pytestCheckHook,
pyyaml,
pyzmq,
tornado,
}:
buildPythonPackage rec {
pname = "kantoku";
version = "0.18.3";
pyproject = true;
src = fetchFromGitHub {
owner = "bentoml";
repo = "kantoku";
tag = 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"
];
__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/${version}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ fab ];
};
}