mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
Authenticate with a Caido instance https://github.com/caido-community/sdk-py/tree/main/packages/caido-server-auth
49 lines
1 KiB
Nix
49 lines
1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
gql,
|
|
nix-update-script,
|
|
uv-build,
|
|
}:
|
|
|
|
buildPythonPackage (finalAttrs: {
|
|
pname = "caido-server-auth";
|
|
version = "0.1.2";
|
|
pyproject = true;
|
|
|
|
__structuredAttrs = true;
|
|
|
|
src = fetchPypi {
|
|
pname = "caido_server_auth";
|
|
inherit (finalAttrs) version;
|
|
hash = "sha256-6ywl6d4VBidgtoES9djprWPusTIlGLkMGgEZppp1JKQ=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace pyproject.toml \
|
|
--replace-fail "uv_build>=0.9.8,<0.10.0" "uv_build"
|
|
'';
|
|
|
|
build-system = [ uv-build ];
|
|
|
|
dependencies = [
|
|
gql
|
|
]
|
|
++ gql.optional-dependencies.aiohttp
|
|
++ gql.optional-dependencies.websockets;
|
|
|
|
pythonImportsCheck = [ "caido_server_auth" ];
|
|
|
|
# Module has no tests
|
|
doCheck = false;
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
meta = {
|
|
description = "Authenticate with a Caido instance";
|
|
homepage = "https://github.com/caido-community/sdk-py/tree/main/packages/caido-server-auth";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ fab ];
|
|
};
|
|
})
|