Fabian Affolter 2024-04-16 10:40:43 +02:00
parent 9ed6644297
commit 29e43304e0

View File

@ -6,7 +6,7 @@
python3.pkgs.buildPythonPackage rec { python3.pkgs.buildPythonPackage rec {
pname = "flare-floss"; pname = "flare-floss";
version = "3.0.1"; version = "3.1.0";
pyproject = true; pyproject = true;
src = fetchFromGitHub { src = fetchFromGitHub {
@ -14,18 +14,21 @@ python3.pkgs.buildPythonPackage rec {
repo = "flare-floss"; repo = "flare-floss";
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
fetchSubmodules = true; # for tests fetchSubmodules = true; # for tests
hash = "sha256-bmOWOFqyvOvSrNTbwLqo0WMq4IAZxZ0YYaWCdCrpziU="; hash = "sha256-a20q7kavWwCsfnAW02+IY0jKERMxkJ+2nid/CwQxC9E=";
}; };
postPatch = '' postPatch = ''
substituteInPlace setup.py \ substituteInPlace pyproject.toml \
--replace "==" ">=" --replace "==" ">="
substituteInPlace floss/main.py \ substituteInPlace floss/main.py \
--replace 'sigs_path = os.path.join(get_default_root(), "sigs")' 'sigs_path = "'"$out"'/share/flare-floss/sigs"' --replace 'sigs_path = os.path.join(get_default_root(), "sigs")' 'sigs_path = "'"$out"'/share/flare-floss/sigs"'
''; '';
build-system = with python3.pkgs; [ setuptools ]; build-system = with python3.pkgs; [
setuptools
setuptools-scm
];
dependencies = dependencies =
with python3.pkgs; with python3.pkgs;
@ -34,7 +37,7 @@ python3.pkgs.buildPythonPackage rec {
halo halo
networkx networkx
pefile pefile
pydantic_1 pydantic
rich rich
tabulate tabulate
tqdm tqdm