mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-01 03:12:51 +00:00
02dab4ab5c
Long term we should move everything over to `pyproject = true`, but in the mean time we can work towards deprecating the implicit `format` paremeter. cc https://github.com/NixOS/nixpkgs/issues/253154 cc @mweinelt @figsoda
36 lines
610 B
Nix
36 lines
610 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, cmake
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "tlsh";
|
|
version = "4.10.0";
|
|
format = "setuptools";
|
|
|
|
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;
|
|
};
|
|
|
|
}
|