depot/third_party/nixpkgs/pkgs/development/python-modules/pysigma-backend-sqlite/default.nix
Default email c7cb07f092 Project import generated by Copybara.
GitOrigin-RevId: 1536926ef5621b09bba54035ae2bb6d806d72ac8
2024-02-29 21:09:43 +01:00

49 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 ];
};
}