From c11824f64494caa38e6b2d07a92375b996ae4e15 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 25 Nov 2022 11:26:51 +0100 Subject: [PATCH] python310Packages.faraday-plugins: set version --- .../python-modules/faraday-plugins/default.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkgs/development/python-modules/faraday-plugins/default.nix b/pkgs/development/python-modules/faraday-plugins/default.nix index bbcd6d600d6c..86d53b20c517 100644 --- a/pkgs/development/python-modules/faraday-plugins/default.nix +++ b/pkgs/development/python-modules/faraday-plugins/default.nix @@ -8,6 +8,7 @@ , lxml , pytestCheckHook , python-dateutil +, pythonOlder , pytz , requests , simplejson @@ -19,6 +20,8 @@ buildPythonPackage rec { version = "1.8.0"; format = "setuptools"; + disabled = pythonOlder "3.7"; + src = fetchFromGitHub { owner = "infobyte"; repo = "faraday_plugins"; @@ -26,6 +29,11 @@ buildPythonPackage rec { hash = "sha256-KAfy2AQWZYFT/+rX8dNe8aWTFI0kkGg5IaSHhwYGk3A="; }; + postPatch = '' + substituteInPlace setup.py \ + --replace "version=version," "version='${version}'," + ''; + propagatedBuildInputs = [ beautifulsoup4 click @@ -64,6 +72,7 @@ buildPythonPackage rec { meta = with lib; { description = "Security tools report parsers for Faraday"; homepage = "https://github.com/infobyte/faraday_plugins"; + changelog = "https://github.com/infobyte/faraday_plugins/releases/tag/${version}"; license = with licenses; [ gpl3Only ]; maintainers = with maintainers; [ fab ]; };