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