blob: e92154003513cf785b8e09852af49a6452626da1 (
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
47
48
49
50
51
52
53
54
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
setuptools-scm,
grpcio,
grpcio-reflection,
protobuf,
pytestCheckHook,
pytest-grpc,
}:
buildPythonPackage rec {
pname = "yagrc";
version = "1.1.2";
pyproject = true;
src = fetchFromGitHub {
owner = "sparky8512";
repo = "yagrc";
tag = "v${version}";
hash = "sha256-nqUzDJfLsI8n8UjfCuOXRG6T8ibdN6fSGPPxm5RJhQk=";
};
build-system = [
setuptools
setuptools-scm
];
dependencies = [
grpcio
grpcio-reflection
protobuf
];
nativeCheckInputs = [
pytestCheckHook
pytest-grpc
];
# tests fail due to pytest-grpc compatibility issues with newer grpcio versions
doCheck = false;
pythonImportsCheck = [ "yagrc" ];
meta = {
description = "Yet another gRPC reflection client";
homepage = "https://github.com/sparky8512/yagrc";
changelog = "https://github.com/sparky8512/yagrc/releases";
license = lib.licenses.asl20;
maintainers = [ lib.maintainers.jamiemagee ];
};
}
|