From 33ec1b434b4e7cc6aceb0893fbf2ed0c8aed43ff Mon Sep 17 00:00:00 2001 From: OPNA2608 Date: Fri, 1 Nov 2024 13:36:30 +0100 Subject: [PATCH] bencodetools: Drop python module building Newest python makes "setup.py install" not work anymore. This is likely better handled by making this a proper pythonPackages entry anyway. --- pkgs/by-name/be/bencodetools/package.nix | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/pkgs/by-name/be/bencodetools/package.nix b/pkgs/by-name/be/bencodetools/package.nix index b6a9ab68dda0..3ea2307397b7 100644 --- a/pkgs/by-name/be/bencodetools/package.nix +++ b/pkgs/by-name/be/bencodetools/package.nix @@ -2,7 +2,6 @@ stdenv, lib, fetchFromGitLab, - python3, }: stdenv.mkDerivation { @@ -24,13 +23,20 @@ stdenv.mkDerivation { enableParallelBuilding = true; - nativeBuildInputs = [ - (python3.withPackages (ps: with ps; [ distutils ])) + configureFlags = [ + (lib.strings.withFeature false "python") ]; # installCheck instead of check due to -install_name'd library on Darwin doInstallCheck = stdenv.buildPlatform.canExecute stdenv.hostPlatform; - installCheckTarget = "check"; + + installCheckPhase = '' + runHook preInstallCheck + + ./bencodetest + + runHook postInstallCheck + ''; meta = with lib; { description = "Collection of tools for manipulating bencoded data";