Files
Fabian Affolter 924f3f5f2b python3Packages.fasttransport: init at 0.0.1
Sync and async HTTP transports over httpx2, plus base classes for
small REST clients

https://github.com/AnswerDotAI/fasttransport
2026-08-22 02:07:26 +02:00

54 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
fastcore,
httpx2,
cachy,
nix-update-script,
}:
buildPythonPackage (finalAttrs: {
pname = "fasttransport";
version = "0.0.1";
pyproject = true;
__structuredAttrs = true;
src = fetchFromGitHub {
owner = "AnswerDotAI";
repo = "fasttransport";
tag = finalAttrs.version;
hash = "sha256-A/24Q/xf92eQan/cKWbgCAMyO3J5WXKpNYdTJhESK5Q=";
};
build-system = [
setuptools
];
dependencies = [
fastcore
httpx2
];
optional-dependencies = {
dev = [ cachy ];
};
# Module has no tests
doCheck = false;
pythonImportsCheck = [ "fasttransport" ];
passthru.updateScript = nix-update-script { };
meta = {
description = "Sync and async HTTP transports over httpx2, plus base classes for small REST clients";
homepage = "https://github.com/AnswerDotAI/fasttransport";
changelog = "https://github.com/AnswerDotAI/fasttransport/blob/${finalAttrs.src.rev}/CHANGELOG.md";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ fab ];
};
})