nixpkgs/pkgs/development/python-modules/tlsh/default.nix
Martin Weinelt 0215034f25 python3.pkgs: Migrate fetchers to use hash
when they already rely on SRI hashes.
2023-03-03 23:59:29 +01:00

35 lines
585 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, cmake
}:
buildPythonPackage rec {
pname = "tlsh";
version = "4.10.0";
src = fetchFromGitHub {
owner = "trendmicro";
repo = "tlsh";
rev = version;
hash = "sha256-9Vkj7a5xU/coFyM/8i8JB0DdnbgDAEMOjmmMF8ckKuE=";
};
nativeBuildInputs = [ cmake ];
# no test data
doCheck = false;
postConfigure = ''
cd ../py_ext
'';
meta = with lib; {
description = "Trend Micro Locality Sensitive Hash";
homepage = "https://tlsh.org/";
license = licenses.asl20;
platforms = platforms.unix;
};
}