diff --git a/pkgs/development/python-modules/githubkit/default.nix b/pkgs/development/python-modules/githubkit/default.nix index 85509528bf35..1a1a019c36d1 100644 --- a/pkgs/development/python-modules/githubkit/default.nix +++ b/pkgs/development/python-modules/githubkit/default.nix @@ -1,9 +1,12 @@ { lib +, anyio , buildPythonPackage , fetchPypi -, poetry-core , httpx +, poetry-core , pydantic +, pyjwt +, pythonOlder , typing-extensions }: @@ -12,6 +15,8 @@ buildPythonPackage rec { version = "0.10.7"; pyproject = true; + disabled = pythonOlder "3.8"; + src = fetchPypi { inherit pname version; hash = "sha256-sKikL+761mBP7j+qugHKDQ0hVXT51FV8FYbB3ZJtweA="; @@ -27,11 +32,34 @@ buildPythonPackage rec { typing-extensions ]; - pythonImportsCheck = [ "githubkit" ]; + passthru.optional-dependencies = { + all = [ + anyio + pyjwt + ]; + jwt = [ + pyjwt + ]; + auth-app = [ + pyjwt + ]; + auth-oauth-device = [ + anyio + ]; + auth = [ + anyio + pyjwt + ]; + }; + + pythonImportsCheck = [ + "githubkit" + ]; meta = { description = "GitHub SDK for Python"; homepage = "https://github.com/yanyongyu/githubkit"; + changelog = "https://github.com/yanyongyu/githubkit/releases/tag/v${version}"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ kranzes ]; };