15 pog = fetchFromGitHub {
18 rev = "b09bbf9cea573ee62aab7eccda896e37961d16cd";
19 hash = "sha256-El4WA92t2O/L4wUqH6Xj8w+ANtb6liRwafDhqn8jxjQ=";
22 buildPythonPackage rec {
27 src = fetchFromGitHub {
30 rev = "refs/tags/v${version}";
31 hash = "sha256-EkGG3J84mTFnor1YX9B1TyjvW6mCCF/AH904DaVX+VU=";
35 rm -r deps/googletest deps/pog/ deps/pybind11/ deps/json/json.hpp
36 cp -r --no-preserve=all ${pog} deps/pog/
37 cp -r --no-preserve=all ${nlohmann_json.src}/single_include/nlohmann/json.hpp deps/json/
38 cp -r --no-preserve=all ${pybind11.src} deps/pybind11/
39 cp -r --no-preserve=all ${gtest.src} deps/googletest/
42 dontUseCmakeConfigure = true;
44 buildInputs = [ libxcrypt ];
51 build-system = [ setuptools ];
53 env.ENV_YARAMOD_BUILD_WITH_UNIT_TESTS = true;
60 pytestFlagsArray = [ "tests/" ];
62 pythonImportsCheck = [ "yaramod" ];
65 description = "Parsing of YARA rules into AST and building new rulesets in C++";
66 homepage = "https://github.com/avast/yaramod";
67 changelog = "https://github.com/avast/yaramod/blob/v${version}/CHANGELOG.md";
68 license = licenses.mit;
69 maintainers = with maintainers; [ msm ];