python3Packages.python-flirt: init at 0.7.0

This commit is contained in:
Simon Bruder 2022-07-25 11:07:52 +02:00
parent f0a2ed7ca5
commit 647d05a321
No known key found for this signature in database
GPG key ID: 8D3C82F9F309F8EC
3 changed files with 1513 additions and 0 deletions

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,46 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, rustPlatform
}:
buildPythonPackage rec {
pname = "python-flirt";
version = "0.7.0";
src = fetchFromGitHub {
owner = "williballenthin";
repo = "lancelot";
rev = "v${version}";
sha256 = "sha256-FsdnWWfyQte7FDz5ldo+S+3IEtbOIODOeh1fHDP2/4s=";
};
postPatch = ''
cp ${./Cargo.lock} Cargo.lock
'';
format = "pyproject";
nativeBuildInputs = with rustPlatform; [
cargoSetupHook
maturinBuildHook
];
buildAndTestSubdir = "pyflirt";
cargoDeps = rustPlatform.importCargoLock {
lockFile = ./Cargo.lock;
outputHashes = {
"zydis-3.1.1" = "sha256-/L28cBTCg/S7onDQXnqUoB5udoEO/depmxDUcnfIQEw=";
};
};
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 ];
};
}

View file

@ -6737,6 +6737,8 @@ in {
python-ecobee-api = callPackage ../development/python-modules/python-ecobee-api { };
python-flirt = callPackage ../development/python-modules/python-flirt { };
python-glanceclient = callPackage ../development/python-modules/python-glanceclient { };
python-google-nest = callPackage ../development/python-modules/python-google-nest { };