mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-20 00:53:12 +03:00
pythonPackges.tlsh: refacotr move to python-modules
This commit is contained in:
parent
46d331ba8d
commit
f84db6dcee
37
pkgs/development/python-modules/tlsh/default.nix
Normal file
37
pkgs/development/python-modules/tlsh/default.nix
Normal file
@ -0,0 +1,37 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pkgs
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "tlsh";
|
||||
version = "3.4.5";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "trendmicro";
|
||||
repo = "tlsh";
|
||||
rev = "22fa9a62068b92c63f2b5a87004a7a7ceaac1930";
|
||||
sha256 = "1ydliir308xn4ywy705mmsh7863ldlixdvpqwdhbipzq9vfpmvll";
|
||||
};
|
||||
|
||||
buildInputs = [ pkgs.cmake ];
|
||||
|
||||
# no test data
|
||||
doCheck = false;
|
||||
|
||||
preConfigure = ''
|
||||
mkdir build
|
||||
cd build
|
||||
cmake ..
|
||||
cd ../py_ext
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Trend Micro Locality Sensitive Hash";
|
||||
homepage = https://github.com/trendmicro/tlsh;
|
||||
license = licenses.asl20;
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
|
||||
}
|
@ -4349,30 +4349,7 @@ in {
|
||||
|
||||
pythonefl = callPackage ../development/python-modules/python-efl { };
|
||||
|
||||
tlsh = buildPythonPackage rec {
|
||||
name = "tlsh-3.4.5";
|
||||
src = pkgs.fetchFromGitHub {
|
||||
owner = "trendmicro";
|
||||
repo = "tlsh";
|
||||
rev = "22fa9a62068b92c63f2b5a87004a7a7ceaac1930";
|
||||
sha256 = "1ydliir308xn4ywy705mmsh7863ldlixdvpqwdhbipzq9vfpmvll";
|
||||
};
|
||||
buildInputs = with pkgs; [ cmake ];
|
||||
# no test data
|
||||
doCheck = false;
|
||||
preConfigure = ''
|
||||
mkdir build
|
||||
cd build
|
||||
cmake ..
|
||||
cd ../py_ext
|
||||
'';
|
||||
meta = with stdenv.lib; {
|
||||
description = "Trend Micro Locality Sensitive Hash";
|
||||
homepage = https://github.com/trendmicro/tlsh;
|
||||
license = licenses.asl20;
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
};
|
||||
tlsh = callPackage ../development/python-modules/tlsh { };
|
||||
|
||||
toposort = buildPythonPackage rec {
|
||||
name = "toposort-${version}";
|
||||
|
Loading…
Reference in New Issue
Block a user