python3Packages.tlsh: fix version patch application
This commit is contained in:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user