diff options
author | Robert Scott <code@humanleg.org.uk> | 2022-08-18 23:54:01 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-18 23:54:01 +0100 |
commit | c2c3e56d5003be5e146694597514a140430acf59 (patch) | |
tree | eea1efb5a66d7dd995ae1581c30b993c9efaf490 | |
parent | af7c487bd0f37eb98a42b52b6306748a8541044c (diff) | |
parent | 5da692923a49e26cdf2b3c304a1a8349e494af07 (diff) | |
download | nixpkgs-c2c3e56d5003be5e146694597514a140430acf59.tar nixpkgs-c2c3e56d5003be5e146694597514a140430acf59.tar.gz nixpkgs-c2c3e56d5003be5e146694597514a140430acf59.tar.bz2 nixpkgs-c2c3e56d5003be5e146694597514a140430acf59.tar.lz nixpkgs-c2c3e56d5003be5e146694597514a140430acf59.tar.xz nixpkgs-c2c3e56d5003be5e146694597514a140430acf59.tar.zst nixpkgs-c2c3e56d5003be5e146694597514a140430acf59.zip |
Merge pull request #187193 from nikstur/python-grpclib
python3Packages.grpclib: init at 0.4.3
-rw-r--r-- | pkgs/development/python-modules/grpclib/default.nix | 51 | ||||
-rw-r--r-- | pkgs/top-level/python-packages.nix | 2 |
2 files changed, 53 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/grpclib/default.nix b/pkgs/development/python-modules/grpclib/default.nix new file mode 100644 index 00000000000..1eb93ece6d6 --- /dev/null +++ b/pkgs/development/python-modules/grpclib/default.nix @@ -0,0 +1,51 @@ +{ buildPythonPackage +, fetchFromGitHub +, lib +, pythonOlder +, h2 +, multidict +, pytestCheckHook +, pytest-asyncio +, async-timeout +, faker +, googleapis-common-protos +, certifi +}: +let + pname = "grpclib"; + version = "0.4.3"; +in +buildPythonPackage { + inherit pname version; + disabled = pythonOlder "3.7"; + + src = fetchFromGitHub { + owner = "vmagamedov"; + repo = pname; + rev = "v${version}"; + sha256 = "sha256-zjctvsuX5yJl1EXIAaiukWGYJbdgU7OZllgOYAmp1b4="; + }; + + propagatedBuildInputs = [ + h2 + multidict + ]; + + checkInputs = [ + pytestCheckHook + pytest-asyncio + async-timeout + faker + googleapis-common-protos + certifi + ]; + + pythonImportsCheck = [ "grpclib" ]; + + meta = with lib; { + description = "Pure-Python gRPC implementation for asyncio"; + homepage = "https://github.com/vmagamedov/grpclib"; + license = licenses.bsd3; + maintainers = with maintainers; [ nikstur ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index e508d5efb87..cb552bc9809 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -3948,6 +3948,8 @@ in { grpcio-tools = callPackage ../development/python-modules/grpcio-tools { }; + grpclib = callPackage ../development/python-modules/grpclib { }; + gruut = callPackage ../development/python-modules/gruut { }; gruut-ipa = callPackage ../development/python-modules/gruut-ipa { |