depot/third_party/nixpkgs/pkgs/development/python-modules/tlsh/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

34 lines
645 B
Nix

{ stdenv
, buildPythonPackage
, fetchFromGitHub
, cmake
}:
buildPythonPackage {
pname = "tlsh";
version = "3.4.5";
src = fetchFromGitHub {
owner = "trendmicro";
repo = "tlsh";
rev = "22fa9a62068b92c63f2b5a87004a7a7ceaac1930";
sha256 = "1ydliir308xn4ywy705mmsh7863ldlixdvpqwdhbipzq9vfpmvll";
};
nativeBuildInputs = [ cmake ];
# no test data
doCheck = false;
postConfigure = ''
cd ../py_ext
'';
meta = with stdenv.lib; {
description = "Trend Micro Locality Sensitive Hash";
homepage = "https://github.com/trendmicro/tlsh";
license = licenses.asl20;
platforms = platforms.unix;
};
}