nixpkgs/pkgs/development/python-modules/pysigma-backend-splunk/default.nix
2022-03-24 09:10:49 -07:00

49 lines
922 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, poetry-core
, pysigma
, pysigma-pipeline-sysmon
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "pysigma-backend-splunk";
version = "0.2.2";
format = "pyproject";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "SigmaHQ";
repo = "pySigma-backend-splunk";
rev = "v${version}";
hash = "sha256-NAhAWK1eSSGQAlMGgMHrW/RTpT9LJMqwkhE9/8xWGT8=";
};
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
pysigma
];
checkInputs = [
pysigma-pipeline-sysmon
pytestCheckHook
];
pythonImportsCheck = [
"sigma.backends.splunk"
];
meta = with lib; {
description = "Library to support Splunk for pySigma";
homepage = "https://github.com/SigmaHQ/pySigma-backend-splunk";
license = with licenses; [ lgpl21Only ];
maintainers = with maintainers; [ fab ];
};
}