mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-26 10:14:48 +00:00
Sync and async HTTP transports over httpx2, plus base classes for small REST clients https://github.com/AnswerDotAI/fasttransport
54 lines
1.1 KiB
Nix
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 ];
|
|
};
|
|
})
|