depot/third_party/nixpkgs/pkgs/development/python-modules/pysigma-backend-opensearch/default.nix
Default email 02cf88bb76 Project import generated by Copybara.
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
2022-08-12 15:06:08 +03:00

55 lines
1 KiB
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, poetry-core
, pysigma
, pysigma-backend-elasticsearch
, pytestCheckHook
, pythonOlder
, requests
}:
buildPythonPackage rec {
pname = "pysigma-backend-opensearch";
version = "0.1.2";
format = "pyproject";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "SigmaHQ";
repo = "pySigma-backend-opensearch";
rev = "v${version}";
hash = "sha256-5+/LOi7GHu8h9WhjpZ7bBc4aM41NiXrSrdGhbXdYMvw=";
};
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
pysigma
pysigma-backend-elasticsearch
];
checkInputs = [
pytestCheckHook
requests
];
pythonImportsCheck = [
"sigma.backends.opensearch"
];
disabledTests = [
# Tests requires network access
"test_connect_lucene"
];
meta = with lib; {
description = "Library to support OpenSearch for pySigma";
homepage = "https://github.com/SigmaHQ/pySigma-backend-opensearch";
license = with licenses; [ lgpl21Only ];
maintainers = with maintainers; [ fab ];
};
}