blob: 513dd2ddab72f2a83b697ff47c2066901b90ab21 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
{
lib,
buildPythonPackage,
pytestCheckHook,
fetchFromGitHub,
hatchling,
python-memcached,
}:
buildPythonPackage rec {
pname = "uhashring";
version = "2.4";
pyproject = true;
src = fetchFromGitHub {
owner = "ultrabug";
repo = "uhashring";
tag = version;
hash = "sha256-6zNPExbcwTUne0lT8V6xp2Gf6J1VgG7Q93qizVOAc+k=";
};
build-system = [
hatchling
];
pythonImportsCheck = [
"uhashring"
];
nativeCheckInputs = [
pytestCheckHook
python-memcached
];
meta = {
description = "Full featured consistent hashing python library compatible with ketama";
homepage = "https://github.com/ultrabug/uhashring";
changelog = "https://github.com/ultrabug/uhashring/blob/${src.tag}/CHANGELOG.md";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ typedrat ];
};
}
|