From 5c7249086799c1ebcacc5d98dec41c0a8cfce41a Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 7 Aug 2023 08:35:12 +0200 Subject: [PATCH 1/4] python311Packages.autocommand: 2.2.1 -> 2.2.2 Diff: https://github.com/Lucretiel/autocommand/compare/2.2.1...2.2.2 --- pkgs/development/python-modules/autocommand/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/autocommand/default.nix b/pkgs/development/python-modules/autocommand/default.nix index ca9eaf668495..3ce1b9ebe001 100644 --- a/pkgs/development/python-modules/autocommand/default.nix +++ b/pkgs/development/python-modules/autocommand/default.nix @@ -6,13 +6,13 @@ buildPythonPackage rec { pname = "autocommand"; - version = "2.2.1"; + version = "2.2.2"; src = fetchFromGitHub { owner = "Lucretiel"; repo = "autocommand"; rev = version; - hash = "sha256-bjoVGfP57qhvPuHHcMP8JQddAaW4/fEyatElk1UEPZo="; + hash = "sha256-9bv9Agj4RpeyNJvTLUaMwygQld2iZZkoLb81rkXOd3E="; }; # fails with: SyntaxError: invalid syntax From 043397326cbd95ddcd1e3e24fa15badcb5b37bb2 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 7 Aug 2023 08:37:55 +0200 Subject: [PATCH 2/4] python311Packages.autocommand: fix style issues --- .../python-modules/autocommand/default.nix | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/autocommand/default.nix b/pkgs/development/python-modules/autocommand/default.nix index 3ce1b9ebe001..1b1ab4fe4570 100644 --- a/pkgs/development/python-modules/autocommand/default.nix +++ b/pkgs/development/python-modules/autocommand/default.nix @@ -11,19 +11,23 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "Lucretiel"; repo = "autocommand"; - rev = version; + rev = "refs/tags/${version}"; hash = "sha256-9bv9Agj4RpeyNJvTLUaMwygQld2iZZkoLb81rkXOd3E="; }; # fails with: SyntaxError: invalid syntax doCheck = false; - nativeCheckInputs = [ pytestCheckHook ]; + nativeCheckInputs = [ + pytestCheckHook + ]; - pythonImportsCheck = [ "autocommand" ]; + pythonImportsCheck = [ + "autocommand" + ]; meta = with lib; { - description = " Autocommand turns a python function into a CLI program "; + description = "Autocommand turns a python function into a CLI program"; homepage = "https://github.com/Lucretiel/autocommand"; license = licenses.lgpl3; maintainers = with maintainers; [ ]; From 7173f833b8db9e997e5a0885052d4b4bd61a2ee2 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 7 Aug 2023 08:39:04 +0200 Subject: [PATCH 3/4] python311Packages.autocommand: specify license --- pkgs/development/python-modules/autocommand/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/autocommand/default.nix b/pkgs/development/python-modules/autocommand/default.nix index 1b1ab4fe4570..1dbfa2f5fc17 100644 --- a/pkgs/development/python-modules/autocommand/default.nix +++ b/pkgs/development/python-modules/autocommand/default.nix @@ -29,7 +29,7 @@ buildPythonPackage rec { meta = with lib; { description = "Autocommand turns a python function into a CLI program"; homepage = "https://github.com/Lucretiel/autocommand"; - license = licenses.lgpl3; + license = licenses.lgpl3Only; maintainers = with maintainers; [ ]; }; } From 390fba20b41b5e0ed69ba0e00b4a32823e9e7ed1 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 7 Aug 2023 08:40:21 +0200 Subject: [PATCH 4/4] python311Packages.autocommand: add format - disable on unsupported Python releases --- pkgs/development/python-modules/autocommand/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/development/python-modules/autocommand/default.nix b/pkgs/development/python-modules/autocommand/default.nix index 1dbfa2f5fc17..eeee08ec4927 100644 --- a/pkgs/development/python-modules/autocommand/default.nix +++ b/pkgs/development/python-modules/autocommand/default.nix @@ -2,11 +2,15 @@ , buildPythonPackage , fetchFromGitHub , pytestCheckHook +, pythonOlder }: buildPythonPackage rec { pname = "autocommand"; version = "2.2.2"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; src = fetchFromGitHub { owner = "Lucretiel";