mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-13 01:03:25 +00:00
c8ad86802c
Diff: https://github.com/SigmaHQ/pySigma-backend-elasticsearch/compare/refs/tags/v1.1.1...v1.1.2 Changelog: https://github.com/SigmaHQ/pySigma-backend-elasticsearch/releases/tag/v1.1.2
55 lines
1.2 KiB
Nix
55 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
poetry-core,
|
|
pysigma,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
requests,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pysigma-backend-elasticsearch";
|
|
version = "1.1.2";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "SigmaHQ";
|
|
repo = "pySigma-backend-elasticsearch";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-7XecgpZ2DQr2f/Ge7skbielK7qwuGoy/KAoxzNvk9w4=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace pyproject.toml \
|
|
--replace-fail " --cov=sigma --cov-report term --cov-report xml:cov.xml" ""
|
|
'';
|
|
|
|
build-system = [ poetry-core ];
|
|
|
|
dependencies = [ pysigma ];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
requests
|
|
];
|
|
|
|
pythonImportsCheck = [ "sigma.backends.elasticsearch" ];
|
|
|
|
disabledTests = [
|
|
# Tests requires network access
|
|
"test_connect_lucene"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Library to support Elasticsearch for pySigma";
|
|
homepage = "https://github.com/SigmaHQ/pySigma-backend-elasticsearch";
|
|
changelog = "https://github.com/SigmaHQ/pySigma-backend-elasticsearch/releases/tag/v${version}";
|
|
license = with licenses; [ lgpl21Only ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|