tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
python3.pkgs.telfhash: init at unstable-2021-01-29
helbling.dev
4 years ago
c27cf061
cd0ffd3f
+51
2 changed files
expand all
collapse all
unified
split
pkgs
development
python-modules
telfhash
default.nix
top-level
python-packages.nix
+49
pkgs/development/python-modules/telfhash/default.nix
···
1
1
+
{ lib
2
2
+
, buildPythonPackage
3
3
+
, fetchFromGitHub
4
4
+
, capstone
5
5
+
, pyelftools
6
6
+
, tlsh
7
7
+
, nose
8
8
+
}:
9
9
+
buildPythonPackage {
10
10
+
pname = "telfhash";
11
11
+
version = "unstable-2021-01-29";
12
12
+
13
13
+
src = fetchFromGitHub {
14
14
+
owner = "trendmicro";
15
15
+
repo = "telfhash";
16
16
+
rev = "b5e398e59dc25a56a28861751c1fccc74ef71617";
17
17
+
sha256 = "jNu6qm8Q/UyJVaCqwFOPX02xAR5DwvCK3PaH6Fvmakk=";
18
18
+
};
19
19
+
20
20
+
# The tlsh library's name is just "tlsh"
21
21
+
postPatch = ''
22
22
+
substituteInPlace requirements.txt --replace "python-tlsh" "tlsh"
23
23
+
'';
24
24
+
25
25
+
propagatedBuildInputs = [
26
26
+
capstone
27
27
+
pyelftools
28
28
+
tlsh
29
29
+
];
30
30
+
31
31
+
checkInputs = [
32
32
+
nose
33
33
+
];
34
34
+
35
35
+
checkPhase = ''
36
36
+
nosetests
37
37
+
'';
38
38
+
39
39
+
pythonImportsCheck = [
40
40
+
"telfhash"
41
41
+
];
42
42
+
43
43
+
meta = with lib; {
44
44
+
description = "Symbol hash for ELF files";
45
45
+
homepage = "https://github.com/trendmicro/telfhash";
46
46
+
license = licenses.asl20;
47
47
+
maintainers = teams.determinatesystems.members;
48
48
+
};
49
49
+
}
+2
pkgs/top-level/python-packages.nix
···
8320
8320
8321
8321
telethon-session-sqlalchemy = callPackage ../development/python-modules/telethon-session-sqlalchemy { };
8322
8322
8323
8323
+
telfhash = callPackage ../development/python-modules/telfhash { };
8324
8324
+
8323
8325
tempita = callPackage ../development/python-modules/tempita { };
8324
8326
8325
8327
tempora = callPackage ../development/python-modules/tempora { };