lol

python312Packages.yara-x: init at 0.13.0 (#389432)

authored by

Emily Trau and committed by
GitHub
4abafaa2 56dc63f5

+49
+49
pkgs/development/python-modules/yara-x/default.nix
··· 1 + { 2 + lib, 3 + buildPythonPackage, 4 + rustPlatform, 5 + fetchFromGitHub, 6 + pythonOlder, 7 + pytestCheckHook, 8 + yara-x, 9 + }: 10 + buildPythonPackage rec { 11 + pname = "yara-x"; 12 + version = "0.13.0"; 13 + pyproject = true; 14 + 15 + disabled = pythonOlder "3.9"; 16 + 17 + src = fetchFromGitHub { 18 + owner = "VirusTotal"; 19 + repo = "yara-x"; 20 + tag = "v${version}"; 21 + hash = "sha256-ZSJHvpRZO6Tbw7Ct4oD6QmuV4mJ4RGW5gnT6PTX+nC8="; 22 + }; 23 + 24 + buildAndTestSubdir = "py"; 25 + 26 + cargoDeps = rustPlatform.fetchCargoTarball { 27 + inherit pname src version; 28 + hash = "sha256-8s8IUblGJGob/y8x8BoPcXJe83zRmqIZHMxs0iQD7R0="; 29 + }; 30 + 31 + nativeBuildInputs = [ 32 + rustPlatform.cargoSetupHook 33 + rustPlatform.maturinBuildHook 34 + ]; 35 + 36 + buildInputs = [ yara-x ]; 37 + 38 + pythonImportsCheck = [ "yara_x" ]; 39 + 40 + nativeCheckInputs = [ pytestCheckHook ]; 41 + 42 + meta = { 43 + description = "The official Python library for YARA-X"; 44 + homepage = "https://github.com/VirusTotal/yara-x/tree/main/py"; 45 + changelog = "https://github.com/VirusTotal/yara-x/tree/v${version}/py"; 46 + license = lib.licenses.bsd3; 47 + maintainers = with lib.maintainers; [ ivyfanchiang ]; 48 + }; 49 + }