Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 protobuf, 7 googleapis-common-protos, 8 pytestCheckHook, 9 pytz, 10}: 11 12buildPythonPackage rec { 13 pname = "proto-plus"; 14 version = "1.26.1"; 15 pyproject = true; 16 17 src = fetchFromGitHub { 18 owner = "googleapis"; 19 repo = "proto-plus-python"; 20 tag = "v${version}"; 21 hash = "sha256-7FonHHXpgJC0vg9Y26bqz0g1NmLWwaZWyFZ0kv7PjY8="; 22 }; 23 24 build-system = [ setuptools ]; 25 26 dependencies = [ protobuf ]; 27 28 nativeCheckInputs = [ 29 pytestCheckHook 30 pytz 31 googleapis-common-protos 32 ]; 33 34 pytestFlags = [ 35 # pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html 36 "-Wignore::DeprecationWarning" 37 ]; 38 39 pythonImportsCheck = [ "proto" ]; 40 41 meta = with lib; { 42 description = "Beautiful, idiomatic protocol buffers in Python"; 43 homepage = "https://github.com/googleapis/proto-plus-python"; 44 license = licenses.asl20; 45 maintainers = with maintainers; [ ruuda ]; 46 }; 47}