1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 uplink, 7 protobuf, 8 pytestCheckHook, 9 pytest-mock, 10}: 11 12buildPythonPackage rec { 13 pname = "uplink-protobuf"; 14 version = "0.1.0"; 15 pyproject = true; 16 17 src = fetchFromGitHub { 18 owner = "prkumar"; 19 repo = "uplink-protobuf"; 20 tag = "v${version}"; 21 hash = "sha256-HeA5bGmYSysidhz8YbST0uTqZ9BKFYQENrWuhcUZ7qY="; 22 }; 23 24 build-system = [ setuptools ]; 25 26 dependencies = [ 27 uplink 28 protobuf 29 ]; 30 31 nativeCheckInputs = [ 32 pytestCheckHook 33 pytest-mock 34 ]; 35 36 pythonImportsCheck = [ "uplink_protobuf" ]; 37 38 meta = { 39 description = "Protocol Buffers (Protobuf) support for Uplink"; 40 homepage = "https://github.com/prkumar/uplink-protobuf"; 41 changelog = "https://github.com/prkumar/uplink-protobuf/releases/tag/${src.tag}"; 42 license = lib.licenses.mit; 43 maintainers = [ lib.maintainers.jamiemagee ]; 44 }; 45}