nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 setuptools-scm,
7 grpcio,
8 grpcio-reflection,
9 protobuf,
10 pytestCheckHook,
11 pytest-grpc,
12}:
13
14buildPythonPackage rec {
15 pname = "yagrc";
16 version = "1.1.2";
17 pyproject = true;
18
19 src = fetchFromGitHub {
20 owner = "sparky8512";
21 repo = "yagrc";
22 tag = "v${version}";
23 hash = "sha256-nqUzDJfLsI8n8UjfCuOXRG6T8ibdN6fSGPPxm5RJhQk=";
24 };
25
26 build-system = [
27 setuptools
28 setuptools-scm
29 ];
30
31 dependencies = [
32 grpcio
33 grpcio-reflection
34 protobuf
35 ];
36
37 nativeCheckInputs = [
38 pytestCheckHook
39 pytest-grpc
40 ];
41
42 # tests fail due to pytest-grpc compatibility issues with newer grpcio versions
43 doCheck = false;
44
45 pythonImportsCheck = [ "yagrc" ];
46
47 meta = {
48 description = "Yet another gRPC reflection client";
49 homepage = "https://github.com/sparky8512/yagrc";
50 changelog = "https://github.com/sparky8512/yagrc/releases";
51 license = lib.licenses.asl20;
52 maintainers = [ lib.maintainers.jamiemagee ];
53 };
54}