From b3585af9d50827a28dba917d5b228ae114407c86 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 6 Jul 2023 10:17:19 +0200 Subject: [PATCH] python311Packages.pygithub: 1.59.0 -> 1.59.0 Diff: https://github.com/PyGithub/PyGithub/compare/refs/tags/v1.59.0...v1.59.0 Changelog: https://github.com/PyGithub/PyGithub/raw/v1.59.0/doc/changes.rst --- .../python-modules/pygithub/default.nix | 35 +++++++++++++------ 1 file changed, 24 insertions(+), 11 deletions(-) diff --git a/pkgs/development/python-modules/pygithub/default.nix b/pkgs/development/python-modules/pygithub/default.nix index 798bd09972f6..0ac5e65f5fd8 100644 --- a/pkgs/development/python-modules/pygithub/default.nix +++ b/pkgs/development/python-modules/pygithub/default.nix @@ -1,38 +1,51 @@ { lib , buildPythonPackage -, cryptography , deprecated , fetchFromGitHub , pynacl +, typing-extensions , pyjwt +, python-dateutil , pythonOlder , requests +, setuptools-scm }: buildPythonPackage rec { pname = "pygithub"; - version = "1.58.0"; + version = "1.59.0"; format = "setuptools"; - disabled = pythonOlder "3.6"; + + disabled = pythonOlder "3.7"; src = fetchFromGitHub { owner = "PyGithub"; repo = "PyGithub"; rev = "refs/tags/v${version}"; - hash = "sha256-DZmKF0C5zexTQ/kbDtTg0FLEocNU4dYMOFCJyvuiV98="; + hash = "sha256-bfXf1lwTpoyf6Pn4J0KR99xUh28VPszlbcYSbqKfyFQ="; }; - propagatedBuildInputs = [ - cryptography - deprecated - pynacl - pyjwt - requests + SETUPTOOLS_SCM_PRETEND_VERSION = version; + + nativeBuildInputs = [ + setuptools-scm ]; + propagatedBuildInputs = [ + deprecated + pyjwt + pynacl + python-dateutil + requests + typing-extensions + ] ++ pyjwt.optional-dependencies.crypto; + # Test suite makes REST calls against github.com doCheck = false; - pythonImportsCheck = [ "github" ]; + + pythonImportsCheck = [ + "github" + ]; meta = with lib; { description = "Python library to access the GitHub API v3";