blob: be9c862e87c3cb9b454d721401e86f881994ce84 (
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
42
43
44
45
46
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
uv-build,
}:
buildPythonPackage (finalAttrs: {
pname = "py-key-value-shared-test";
version = "0.3.0";
pyproject = true;
src = fetchFromGitHub {
owner = "strawgate";
repo = "py-key-value";
tag = finalAttrs.version;
hash = "sha256-4ji+GzJTv1QnC5n/OaL9vR65j8BQmJsVGGnjjuulDiU=";
};
sourceRoot = "${finalAttrs.src.name}/key-value/key-value-shared-test";
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail \
"uv_build>=0.8.2,<0.9.0" \
"uv_build"
'';
build-system = [
uv-build
];
pythonImportsCheck = [ "key_value.shared_test" ];
# No tests
doCheck = false;
meta = {
description = "Utils for key-value-shared";
homepage = "https://github.com/strawgate/py-key-value/tree/main/key-value/key-value-shared-test";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ GaetanLepage ];
};
})
|