depot/third_party/nixpkgs/pkgs/development/python-modules/tlsh/default.nix
Default email 75ca762b89 Project import generated by Copybara.
GitOrigin-RevId: 29b0d4d0b600f8f5dd0b86e3362a33d4181938f9
2021-03-09 11:18:52 +08:00

34 lines
617 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, cmake
}:
buildPythonPackage {
pname = "tlsh";
version = "4.5.0";
src = fetchFromGitHub {
owner = "trendmicro";
repo = "tlsh";
rev = "f2bb7a97cfb0f9418a750ba92c182d1091e6c159";
sha256 = "1kxfhdwqjd4pjdlr1gjh2am8mxpaqmfq7rrxkjfi0mbisl1krkwb";
};
nativeBuildInputs = [ cmake ];
# no test data
doCheck = false;
postConfigure = ''
cd ../py_ext
'';
meta = with lib; {
description = "Trend Micro Locality Sensitive Hash";
homepage = "http://tlsh.org/";
license = licenses.asl20;
platforms = platforms.unix;
};
}