depot/third_party/nixpkgs/pkgs/development/python-modules/pysigma-backend-sqlite/default.nix

44 lines
989 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
poetry-core,
pysigma,
pytestCheckHook,
pythonOlder,
requests,
}:
buildPythonPackage rec {
pname = "pysigma-backend-sqlite";
version = "0.2.0";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "SigmaHQ";
repo = "pySigma-backend-sqlite";
rev = "refs/tags/v${version}";
hash = "sha256-PQByKARf0OOMC9LRTz3XVrFZp6ODSggMJeA6PNK/AuA=";
};
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 ];
};
}