mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
python3Packages.caido-sdk-client: init at 0.2.0
Client SDK for interacting with a Caido instance https://pypi.org/project/caido-sdk-client
This commit is contained in:
parent
4ad209cd88
commit
e37995605d
2 changed files with 55 additions and 0 deletions
53
pkgs/development/python-modules/caido-sdk-client/default.nix
Normal file
53
pkgs/development/python-modules/caido-sdk-client/default.nix
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
caido-server-auth,
|
||||
fetchPypi,
|
||||
gql,
|
||||
nix-update-script,
|
||||
pydantic,
|
||||
uv-build,
|
||||
}:
|
||||
|
||||
buildPythonPackage (finalAttrs: {
|
||||
pname = "caido-sdk-client";
|
||||
version = "0.2.0";
|
||||
pyproject = true;
|
||||
|
||||
__structuredAttrs = true;
|
||||
|
||||
src = fetchPypi {
|
||||
pname = "caido_sdk_client";
|
||||
inherit (finalAttrs) version;
|
||||
hash = "sha256-OZiP4Hs/qcaa29SWYttmDXcH1g2SRRCbFiPe+Xs5usg=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace pyproject.toml \
|
||||
--replace-fail "uv_build>=0.9.8,<0.10.0" "uv_build"
|
||||
'';
|
||||
|
||||
build-system = [ uv-build ];
|
||||
|
||||
dependencies = [
|
||||
caido-server-auth
|
||||
gql
|
||||
pydantic
|
||||
]
|
||||
++ gql.optional-dependencies.aiohttp
|
||||
++ gql.optional-dependencies.websockets;
|
||||
|
||||
pythonImportsCheck = [ "caido_sdk_client" ];
|
||||
|
||||
# Module has no tests
|
||||
doCheck = false;
|
||||
|
||||
passthru.updateScript = nix-update-script { };
|
||||
|
||||
meta = {
|
||||
description = "Client SDK for interacting with a Caido instance";
|
||||
homepage = "https://pypi.org/project/caido-sdk-client";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ fab ];
|
||||
};
|
||||
})
|
||||
|
|
@ -2472,6 +2472,8 @@ self: super: with self; {
|
|||
|
||||
caido-schema-proxy = callPackage ../development/python-modules/caido-schema-proxy { };
|
||||
|
||||
caido-sdk-client = callPackage ../development/python-modules/caido-sdk-client { };
|
||||
|
||||
caido-server-auth = callPackage ../development/python-modules/caido-server-auth { };
|
||||
|
||||
caio = callPackage ../development/python-modules/caio { };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue