Files
nixpkgs/pkgs/development/python-modules/libsast/default.nix
2026-09-07 21:35:09 +02:00

57 lines
1.0 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
poetry-core,
billiard,
pyyaml,
requests,
pytestCheckHook,
semgrep,
}:
buildPythonPackage (finalAttrs: {
pname = "libsast";
version = "3.1.8";
pyproject = true;
__structuredAttrs = true;
src = fetchFromGitHub {
owner = "ajinabraham";
repo = "libsast";
tag = finalAttrs.version;
hash = "sha256-PG4rA+13CKp9JT1rPvQZp1DWIcLL37NOWRRs/vB/bGE=";
};
build-system = [ setuptools ];
dependencies = [
poetry-core
billiard
pyyaml
requests
];
pythonImportsCheck = [ "libsast" ];
nativeCheckInputs = [
pytestCheckHook
semgrep
];
disabledTests = [
# requires internet
"test_load_url"
"test_semgrep"
];
meta = {
description = "Generic SAST Library";
homepage = "https://github.com/ajinabraham/libsast";
changelog = "https://github.com/ajinabraham/libsast/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.lgpl3;
maintainers = with lib.maintainers; [ felbinger ];
};
})