From d515e117997d8634fce0675fce363a8c6c30ccd6 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Mon, 2 May 2022 16:46:09 +0000 Subject: [PATCH 1/2] python310Packages.ghp-import: 2.0.2 -> 2.1.0 --- pkgs/development/python-modules/ghp-import/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/ghp-import/default.nix b/pkgs/development/python-modules/ghp-import/default.nix index 03aabc4ab6e2..f606867c167b 100644 --- a/pkgs/development/python-modules/ghp-import/default.nix +++ b/pkgs/development/python-modules/ghp-import/default.nix @@ -6,11 +6,11 @@ buildPythonPackage rec { pname = "ghp-import"; - version = "2.0.2"; + version = "2.1.0"; src = fetchPypi { inherit pname version; - hash = "sha256-lHs3cfEb6FDIUsZLVhxgD93feUurNjBghUwe560F4HE="; + hash = "sha256-nFNcTGEZPC34hxIiVn1/1+UBTYNfl9x7dDkGniQT00M="; }; propagatedBuildInputs = [ python-dateutil ]; From 01048fa37c386a749bf8315422bf9ba4baeca833 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 2 May 2022 19:23:41 +0200 Subject: [PATCH 2/2] python310Packages.ghp-import: disable on older Python releases --- .../python-modules/ghp-import/default.nix | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/ghp-import/default.nix b/pkgs/development/python-modules/ghp-import/default.nix index f606867c167b..956b1098e33f 100644 --- a/pkgs/development/python-modules/ghp-import/default.nix +++ b/pkgs/development/python-modules/ghp-import/default.nix @@ -2,23 +2,31 @@ , buildPythonPackage , fetchPypi , python-dateutil +, pythonOlder }: buildPythonPackage rec { pname = "ghp-import"; version = "2.1.0"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; hash = "sha256-nFNcTGEZPC34hxIiVn1/1+UBTYNfl9x7dDkGniQT00M="; }; - propagatedBuildInputs = [ python-dateutil ]; + propagatedBuildInputs = [ + python-dateutil + ]; # Does not include any unit tests doCheck = false; - pythonImportsCheck = [ "ghp_import" ]; + pythonImportsCheck = [ + "ghp_import" + ]; meta = with lib; { description = "Copy your docs directly to the gh-pages branch";