nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at r-updates 48 lines 1.2 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 poetry-core, 6 pysigma, 7 pytest-cov-stub, 8 pytestCheckHook, 9 requests, 10 writableTmpDirAsHomeHook, 11}: 12 13buildPythonPackage (finalAttrs: { 14 pname = "pysigma-backend-elasticsearch"; 15 version = "2.0.2"; 16 pyproject = true; 17 18 src = fetchFromGitHub { 19 owner = "SigmaHQ"; 20 repo = "pySigma-backend-elasticsearch"; 21 tag = "v${finalAttrs.version}"; 22 hash = "sha256-QRG+fsy4AGKPv5WoquFVYXsb39XABwgDJD4EgLiRVdg="; 23 }; 24 25 build-system = [ poetry-core ]; 26 27 dependencies = [ pysigma ]; 28 29 nativeCheckInputs = [ 30 pytest-cov-stub 31 pytestCheckHook 32 requests 33 writableTmpDirAsHomeHook 34 ]; 35 36 # Starting with 2.0.0 all tests require network access 37 doCheck = false; 38 39 #pythonImportsCheck = [ "sigma.backends.elasticsearch" ]; 40 41 meta = { 42 description = "Library to support Elasticsearch for pySigma"; 43 homepage = "https://github.com/SigmaHQ/pySigma-backend-elasticsearch"; 44 changelog = "https://github.com/SigmaHQ/pySigma-backend-elasticsearch/releases/tag/${finalAttrs.src.tag}"; 45 license = lib.licenses.lgpl21Only; 46 maintainers = with lib.maintainers; [ fab ]; 47 }; 48})