10 buildPythonPackage rec {
11 pname = "python-flirt";
14 src = fetchFromGitHub {
15 owner = "williballenthin";
18 hash = "sha256-J48tRgJw6JjUrcAQdRELFE50pyDptbmbgYbr+rAK/PA=";
22 cp ${./Cargo.lock} Cargo.lock
27 nativeBuildInputs = with rustPlatform; [
32 buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ libiconv ];
34 buildAndTestSubdir = "pyflirt";
36 cargoDeps = rustPlatform.importCargoLock {
37 lockFile = ./Cargo.lock;
39 "zydis-3.1.3" = "sha256-X+aURjNfXGXO4eh6RJ3bi8Eb2kvF09I34ZHffvYjt9I=";
43 pythonImportsCheck = [ "flirt" ];
46 description = "Python library for parsing, compiling, and matching Fast Library Identification and Recognition Technology (FLIRT) signatures";
47 homepage = "https://github.com/williballenthin/lancelot/tree/master/pyflirt";
48 license = licenses.asl20;
49 maintainers = with maintainers; [ sbruder ];