1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 poetry-core,
6 pysigma,
7 pytestCheckHook,
8 pythonOlder,
9 requests,
10}:
11
12buildPythonPackage rec {
13 pname = "pysigma-backend-sqlite";
14 version = "0.2.0";
15 pyproject = true;
16
17 disabled = pythonOlder "3.8";
18
19 src = fetchFromGitHub {
20 owner = "SigmaHQ";
21 repo = "pySigma-backend-sqlite";
22 tag = "v${version}";
23 hash = "sha256-PQByKARf0OOMC9LRTz3XVrFZp6ODSggMJeA6PNK/AuA=";
24 };
25
26 nativeBuildInputs = [ poetry-core ];
27
28 propagatedBuildInputs = [ pysigma ];
29
30 nativeCheckInputs = [
31 pytestCheckHook
32 requests
33 ];
34
35 pythonImportsCheck = [ "sigma.backends.sqlite" ];
36
37 meta = with lib; {
38 description = "Library to support sqlite for pySigma";
39 homepage = "https://github.com/SigmaHQ/pySigma-backend-sqlite";
40 changelog = "https://github.com/SigmaHQ/pySigma-backend-sqlite/releases/tag/v${version}";
41 license = with licenses; [ lgpl3Only ];
42 maintainers = with maintainers; [ fab ];
43 };
44}