python310Packages.faraday-plugins: set version

This commit is contained in:
Fabian Affolter
2022-11-25 11:26:51 +01:00
parent 5e159ac0bc
commit c11824f644
@@ -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 ];
};