From 08b5d739cd935da4907433588afe07c2f50743fd Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 17 Aug 2024 12:26:44 +0200 Subject: [PATCH] das: relax defusedxml - fix build (https://hydra.nixos.org/build/269342119) --- pkgs/by-name/da/das/package.nix | 28 +++++++++++++--------------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/pkgs/by-name/da/das/package.nix b/pkgs/by-name/da/das/package.nix index 3ed340e72edb..8806e9181407 100644 --- a/pkgs/by-name/da/das/package.nix +++ b/pkgs/by-name/da/das/package.nix @@ -1,6 +1,7 @@ -{ lib -, python3 -, fetchFromGitHub +{ + lib, + python3, + fetchFromGitHub, }: python3.pkgs.buildPythonApplication rec { @@ -15,17 +16,15 @@ python3.pkgs.buildPythonApplication rec { hash = "sha256-WZmWpcBqxsNH96nVWwoepFhsvdxZpYKmAjNd7ghIJMA="; }; - postPatch = '' - substituteInPlace pyproject.toml \ - --replace 'networkx = "^2.8.4"' 'networkx = "*"' \ - --replace 'netaddr = "^0.8.0"' 'netaddr = "*"' - ''; - - nativeBuildInputs = [ - python3.pkgs.poetry-core + pythonRelaxDeps = [ + "defusedxml" + "netaddr" + "networkx" ]; - propagatedBuildInputs = with python3.pkgs; [ + build-system = with python3.pkgs; [ poetry-core ]; + + dependencies = with python3.pkgs; [ dash defusedxml dnspython @@ -38,13 +37,12 @@ python3.pkgs.buildPythonApplication rec { tinydb ]; - pythonImportsCheck = [ - "das" - ]; + pythonImportsCheck = [ "das" ]; meta = with lib; { description = "Divide full port scan results and use it for targeted Nmap runs"; homepage = "https://github.com/snovvcrash/DivideAndScan"; + changelog = "https://github.com/snovvcrash/DivideAndScan/releases/tag/v${version}"; license = licenses.bsd2; maintainers = with maintainers; [ fab ]; mainProgram = "das";