From 5fc427e664ebea0af3a8c64ef9ea8114492cf2f2 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sun, 12 Jul 2026 15:27:12 +0200 Subject: [PATCH] python3Packages.tlsh: fix version patch application --- .../python-modules/tlsh/default.nix | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/pkgs/development/python-modules/tlsh/default.nix b/pkgs/development/python-modules/tlsh/default.nix index b71daa2736d9..05341909dbed 100644 --- a/pkgs/development/python-modules/tlsh/default.nix +++ b/pkgs/development/python-modules/tlsh/default.nix @@ -18,27 +18,27 @@ buildPythonPackage rec { hash = "sha256-cYvXZrd+8ZC5LfucguFFNlEX8FR+AkchmCFButYoiMg="; }; - postPatch = '' - substituteInPlace py_ext/setup.py \ - --replace-fail "version = '4.5.0'" "version = '${version}'" - ''; - patches = [ # https://github.com/trendmicro/tlsh/pull/152 ./cmake-4-compat.patch ]; + postPatch = '' + substituteInPlace py_ext/setup.py \ + --replace-fail "4.5.0" "${version}" + ''; + nativeBuildInputs = [ cmake ]; + postConfigure = '' + cd ../py_ext + ''; + build-system = [ setuptools ]; # no test data doCheck = false; - postConfigure = '' - cd ../py_ext - ''; - pythonImportsCheck = [ "tlsh" ]; meta = {