9 buildPythonPackage rec {
10 pname = "python-flirt";
13 src = fetchFromGitHub {
14 owner = "williballenthin";
17 hash = "sha256-J48tRgJw6JjUrcAQdRELFE50pyDptbmbgYbr+rAK/PA=";
21 cp ${./Cargo.lock} Cargo.lock
26 nativeBuildInputs = with rustPlatform; [
31 buildInputs = lib.optionals stdenv.isDarwin [
35 buildAndTestSubdir = "pyflirt";
37 cargoDeps = rustPlatform.importCargoLock {
38 lockFile = ./Cargo.lock;
40 "zydis-3.1.3" = "sha256-X+aURjNfXGXO4eh6RJ3bi8Eb2kvF09I34ZHffvYjt9I=";
44 pythonImportsCheck = [ "flirt" ];
47 description = "Python library for parsing, compiling, and matching Fast Library Identification and Recognition Technology (FLIRT) signatures";
48 homepage = "https://github.com/williballenthin/lancelot/tree/master/pyflirt";
49 license = licenses.asl20;
50 maintainers = with maintainers; [ sbruder ];