python3Packages.tlsh: fix version patch application

This commit is contained in:
Martin Weinelt
2026-07-15 03:11:47 +02:00
parent 953bc491e5
commit 5fc427e664
@@ -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 = {