50 lines
997 B
Nix
50 lines
997 B
Nix
|
{ lib
|
||
|
, buildPythonPackage
|
||
|
, fetchFromGitHub
|
||
|
, poetry-core
|
||
|
, pysigma
|
||
|
, pytestCheckHook
|
||
|
, pythonOlder
|
||
|
, requests
|
||
|
}:
|
||
|
|
||
|
buildPythonPackage rec {
|
||
|
pname = "pysigma-backend-sqlite";
|
||
|
version = "0.1.2";
|
||
|
pyproject = true;
|
||
|
|
||
|
disabled = pythonOlder "3.8";
|
||
|
|
||
|
src = fetchFromGitHub {
|
||
|
owner = "SigmaHQ";
|
||
|
repo = "pySigma-backend-sqlite";
|
||
|
rev = "refs/tags/v${version}";
|
||
|
hash = "sha256-wbFSgtsiP5k1aGJx8PWDl0N28r0dgn6Fduk0PuM8x3w=";
|
||
|
};
|
||
|
|
||
|
nativeBuildInputs = [
|
||
|
poetry-core
|
||
|
];
|
||
|
|
||
|
propagatedBuildInputs = [
|
||
|
pysigma
|
||
|
];
|
||
|
|
||
|
nativeCheckInputs = [
|
||
|
pytestCheckHook
|
||
|
requests
|
||
|
];
|
||
|
|
||
|
pythonImportsCheck = [
|
||
|
"sigma.backends.sqlite"
|
||
|
];
|
||
|
|
||
|
meta = with lib; {
|
||
|
description = "Library to support sqlite for pySigma";
|
||
|
homepage = "https://github.com/SigmaHQ/pySigma-backend-sqlite";
|
||
|
changelog = "https://github.com/SigmaHQ/pySigma-backend-sqlite/releases/tag/v${version}";
|
||
|
license = with licenses; [ lgpl3Only ];
|
||
|
maintainers = with maintainers; [ fab ];
|
||
|
};
|
||
|
}
|