From b81d35be35e0bb7cfde62de6eb703ebfcb4c7b01 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 6 Apr 2024 15:39:50 +0200 Subject: [PATCH 1/2] python312Packages.whispers: 2.2.0 -> 2.2.1 Changelog: https://github.com/adeptex/whispers/releases/tag/2.2.1 --- .../python-modules/whispers/default.nix | 33 ++++--------------- 1 file changed, 6 insertions(+), 27 deletions(-) diff --git a/pkgs/development/python-modules/whispers/default.nix b/pkgs/development/python-modules/whispers/default.nix index 357d8d271ff4..411c54d7d47d 100644 --- a/pkgs/development/python-modules/whispers/default.nix +++ b/pkgs/development/python-modules/whispers/default.nix @@ -4,7 +4,6 @@ , buildPythonPackage , crossplane , fetchFromGitHub -, fetchpatch , jellyfish , jproperties , luhn @@ -18,7 +17,7 @@ buildPythonPackage rec { pname = "whispers"; - version = "2.2.0"; + version = "2.2.1"; pyproject = true; disabled = pythonOlder "3.7"; @@ -27,39 +26,19 @@ buildPythonPackage rec { owner = "adeptex"; repo = "whispers"; rev = "refs/tags/${version}"; - hash = "sha256-9vXku8BWJtlf+lmAcQ8a7qTisRNc+xVw0T0Eunc4lt4="; + hash = "sha256-YPfTe2txQY/sVEIGSMTA1b3Ye3j8qT+YdWp3AVqpdLI="; }; - patches = [ - # Support astroid > 3, https://github.com/adeptex/whispers/pull/117 - (fetchpatch { - url = "https://github.com/adeptex/whispers/commit/ff25e81cb3d775e5fb186c2d135b77c27d9ed43a.patch"; - hash = "sha256-jKm7fs04mGUD7MZYAA/3xt01e9knuLun3c3u8PlLebg="; - }) - (fetchpatch { - url = "https://github.com/adeptex/whispers/commit/ba6a56dddb12d1cb62f94dd7659ba24fdc4363ee.patch"; - hash = "sha256-eHWnXHT0lzS7BqneMqfvV3w6GfrCiTJ5i+av82J+fpk="; - }) - (fetchpatch { - url = "https://github.com/adeptex/whispers/commit/8b7b1593eb86abfc09b3581d463fc7d0e06309dc.patch"; - hash = "sha256-JcRdv5eIyXKWaVqbJZlYqiSieE4z0MKF4dvO/hRBBMs="; - }) - (fetchpatch { - url = "https://github.com/adeptex/whispers/commit/71dcb614e4d9e0247afc50cd4214659739f8844e.patch"; - hash = "sha256-7XIFuc8Rf2ValN3BoAJOjSqjgmiOauxCFonMgGljFg0="; - }) - ]; - postPatch = '' substituteInPlace setup.py \ - --replace '"pytest-runner"' "" + --replace-fail '"pytest-runner"' "" ''; - nativeBuildInputs = [ + build-system = [ setuptools ]; - propagatedBuildInputs = [ + dependencies = [ astroid beautifulsoup4 crossplane @@ -86,10 +65,10 @@ buildPythonPackage rec { meta = with lib; { description = "Tool to identify hardcoded secrets in static structured text"; - mainProgram = "whispers"; homepage = "https://github.com/adeptex/whispers"; changelog = "https://github.com/adeptex/whispers/releases/tag/${version}"; license = with licenses; [ asl20 ]; maintainers = with maintainers; [ fab ]; + mainProgram = "whispers"; }; } From e90f9dfd460b7ca09fefc6218dae33fa1ea158f2 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 6 Apr 2024 15:40:43 +0200 Subject: [PATCH 2/2] python312Packages.whispers: format with nixfmt --- .../python-modules/whispers/default.nix | 39 +++++++++---------- 1 file changed, 18 insertions(+), 21 deletions(-) diff --git a/pkgs/development/python-modules/whispers/default.nix b/pkgs/development/python-modules/whispers/default.nix index 411c54d7d47d..346083ef81a1 100644 --- a/pkgs/development/python-modules/whispers/default.nix +++ b/pkgs/development/python-modules/whispers/default.nix @@ -1,18 +1,19 @@ -{ lib -, astroid -, beautifulsoup4 -, buildPythonPackage -, crossplane -, fetchFromGitHub -, jellyfish -, jproperties -, luhn -, lxml -, pytest-mock -, pytestCheckHook -, pythonOlder -, pyyaml -, setuptools +{ + lib, + astroid, + beautifulsoup4, + buildPythonPackage, + crossplane, + fetchFromGitHub, + jellyfish, + jproperties, + luhn, + lxml, + pytest-mock, + pytestCheckHook, + pythonOlder, + pyyaml, + setuptools, }: buildPythonPackage rec { @@ -34,9 +35,7 @@ buildPythonPackage rec { --replace-fail '"pytest-runner"' "" ''; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; dependencies = [ astroid @@ -59,9 +58,7 @@ buildPythonPackage rec { export PATH=$out/bin:$PATH ''; - pythonImportsCheck = [ - "whispers" - ]; + pythonImportsCheck = [ "whispers" ]; meta = with lib; { description = "Tool to identify hardcoded secrets in static structured text";