blob: 47fdc3cfa08dc5740352000f660c0797aaba2617 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
{
lib,
stdenv,
buildPythonPackage,
fetchFromGitHub,
rustPlatform,
libiconv,
}:
buildPythonPackage rec {
pname = "python-flirt";
version = "0.8.6";
src = fetchFromGitHub {
owner = "williballenthin";
repo = "lancelot";
rev = "v${version}";
hash = "sha256-J48tRgJw6JjUrcAQdRELFE50pyDptbmbgYbr+rAK/PA=";
};
postPatch = ''
cp ${./Cargo.lock} Cargo.lock
'';
format = "pyproject";
nativeBuildInputs = with rustPlatform; [
cargoSetupHook
maturinBuildHook
];
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ libiconv ];
buildAndTestSubdir = "pyflirt";
cargoDeps = rustPlatform.importCargoLock {
lockFile = ./Cargo.lock;
outputHashes = {
"zydis-3.1.3" = "sha256-X+aURjNfXGXO4eh6RJ3bi8Eb2kvF09I34ZHffvYjt9I=";
};
};
pythonImportsCheck = [ "flirt" ];
meta = with lib; {
description = "Python library for parsing, compiling, and matching Fast Library Identification and Recognition Technology (FLIRT) signatures";
homepage = "https://github.com/williballenthin/lancelot/tree/master/pyflirt";
license = licenses.asl20;
maintainers = with maintainers; [ sbruder ];
};
}
|