From f8ef4b700dafeedc32ff85d2f0349f6444b9c0fc Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 11 May 2024 10:23:39 +0200 Subject: [PATCH 1/3] python312Packages.pyexploitdb: 0.2.9 -> 0.2.16 Changelog: https://github.com/GoVanguard/pyExploitDb/blob/master/Changelog.txt --- pkgs/development/python-modules/pyexploitdb/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/pyexploitdb/default.nix b/pkgs/development/python-modules/pyexploitdb/default.nix index c59205aa3f1a..cb0a7b1d3796 100644 --- a/pkgs/development/python-modules/pyexploitdb/default.nix +++ b/pkgs/development/python-modules/pyexploitdb/default.nix @@ -9,7 +9,7 @@ buildPythonPackage rec { pname = "pyexploitdb"; - version = "0.2.9"; + version = "0.2.16"; format = "setuptools"; disabled = pythonOlder "3.7"; @@ -17,7 +17,7 @@ buildPythonPackage rec { src = fetchPypi { pname = "pyExploitDb"; inherit version; - hash = "sha256-q16YB0lLlw9nXohcT20l41Bv40CqshWzE8nVBBSEppE="; + hash = "sha256-PP9dR8Jl4eWsky3vO9Pgraw0plik/5aWvmOAEc2/Qpo="; }; propagatedBuildInputs = [ From 2ec1661fd6934688123f3578abd50ea756585b0a Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 11 May 2024 10:25:22 +0200 Subject: [PATCH 2/3] python312Packages.pyexploitdb: refactor --- .../python-modules/pyexploitdb/default.nix | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/pyexploitdb/default.nix b/pkgs/development/python-modules/pyexploitdb/default.nix index cb0a7b1d3796..dcb4c19e3fb9 100644 --- a/pkgs/development/python-modules/pyexploitdb/default.nix +++ b/pkgs/development/python-modules/pyexploitdb/default.nix @@ -5,12 +5,13 @@ , pytestCheckHook , pythonOlder , requests +, setuptools }: buildPythonPackage rec { pname = "pyexploitdb"; version = "0.2.16"; - format = "setuptools"; + pyproject = true; disabled = pythonOlder "3.7"; @@ -20,7 +21,11 @@ buildPythonPackage rec { hash = "sha256-PP9dR8Jl4eWsky3vO9Pgraw0plik/5aWvmOAEc2/Qpo="; }; - propagatedBuildInputs = [ + build-system = [ + setuptools + ]; + + dependencies = [ gitpython requests ]; @@ -35,7 +40,7 @@ buildPythonPackage rec { meta = with lib; { description = "Library to fetch the most recent exploit-database"; homepage = "https://github.com/GoVanguard/pyExploitDb"; - changelog = "https://github.com/GoVanguard/pyExploitDb/blob/master/Changelog.txt"; + changelog = "https://github.com/GoVanguard/pyExploitDb/blob/master/ChangeLog.md"; license = licenses.gpl3Plus; maintainers = with maintainers; [ fab ]; }; From cb74aacd1b6a48076b7384fb0a70974e8e4c2523 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 11 May 2024 10:25:37 +0200 Subject: [PATCH 3/3] python312Packages.pyexploitdb: format with nixfmt --- .../python-modules/pyexploitdb/default.nix | 25 ++++++++----------- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/pkgs/development/python-modules/pyexploitdb/default.nix b/pkgs/development/python-modules/pyexploitdb/default.nix index dcb4c19e3fb9..93f5e3567839 100644 --- a/pkgs/development/python-modules/pyexploitdb/default.nix +++ b/pkgs/development/python-modules/pyexploitdb/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, gitpython -, pytestCheckHook -, pythonOlder -, requests -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + gitpython, + pytestCheckHook, + pythonOlder, + requests, + setuptools, }: buildPythonPackage rec { @@ -21,9 +22,7 @@ buildPythonPackage rec { hash = "sha256-PP9dR8Jl4eWsky3vO9Pgraw0plik/5aWvmOAEc2/Qpo="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; dependencies = [ gitpython @@ -33,9 +32,7 @@ buildPythonPackage rec { # Module has no tests doCheck = false; - pythonImportsCheck = [ - "pyExploitDb" - ]; + pythonImportsCheck = [ "pyExploitDb" ]; meta = with lib; { description = "Library to fetch the most recent exploit-database";