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 = {