From 19f52860390aeb254080186527d9948c714b540e Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Wed, 21 Feb 2024 03:46:43 +0000 Subject: [PATCH 1/2] python311Packages.autoit-ripper: 1.1.1 -> 1.1.2 --- pkgs/development/python-modules/autoit-ripper/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/autoit-ripper/default.nix b/pkgs/development/python-modules/autoit-ripper/default.nix index ed0c716bbc95..d97f1dc78a44 100644 --- a/pkgs/development/python-modules/autoit-ripper/default.nix +++ b/pkgs/development/python-modules/autoit-ripper/default.nix @@ -7,14 +7,14 @@ buildPythonPackage rec { pname = "autoit-ripper"; - version = "1.1.1"; + version = "1.1.2"; format = "setuptools"; disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; - hash = "sha256-a30SDJdKoljWjV0O1sZ35NnQPFcJ0XOPcmTanozWpHY="; + hash = "sha256-+BHWDkeVewoRUgaHln5TyoajpCvJiowCiC2dFYyp1MA="; }; propagatedBuildInputs = [ From 4750d55cb0550aeebd1336ef2d4b6931f84a8bbe Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 21 Feb 2024 11:11:34 +0100 Subject: [PATCH 2/2] python311Packages.autoit-ripper: refactor --- .../python-modules/autoit-ripper/default.nix | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/autoit-ripper/default.nix b/pkgs/development/python-modules/autoit-ripper/default.nix index d97f1dc78a44..0789f6bcc9a7 100644 --- a/pkgs/development/python-modules/autoit-ripper/default.nix +++ b/pkgs/development/python-modules/autoit-ripper/default.nix @@ -3,12 +3,13 @@ , fetchPypi , pefile , pythonOlder +, setuptools }: buildPythonPackage rec { pname = "autoit-ripper"; version = "1.1.2"; - format = "setuptools"; + pyproject = true; disabled = pythonOlder "3.7"; @@ -17,15 +18,19 @@ buildPythonPackage rec { hash = "sha256-+BHWDkeVewoRUgaHln5TyoajpCvJiowCiC2dFYyp1MA="; }; + postPatch = '' + substituteInPlace requirements.txt \ + --replace-fail "pefile==2019.4.18" "pefile>=2019.4.18" + ''; + + nativeBuildInputs = [ + setuptools + ]; + propagatedBuildInputs = [ pefile ]; - postPatch = '' - substituteInPlace requirements.txt \ - --replace "pefile==2019.4.18" "pefile>=2019.4.18" - ''; - # Project has no tests doCheck = false; @@ -36,6 +41,7 @@ buildPythonPackage rec { meta = with lib; { description = "Python module to extract AutoIt scripts embedded in PE binaries"; homepage = "https://github.com/nazywam/AutoIt-Ripper"; + changelog = "https://github.com/nazywam/AutoIt-Ripper/releases/tag/v${version}"; license = with licenses; [ mit ]; maintainers = with maintainers; [ fab ]; };