1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-18 11:40:45 +00:00

python311Packages.httpx-sse: init at 0.4.0

This commit is contained in:
natsukium 2024-04-28 14:40:29 +09:00
parent 0a5d0d286a
commit 020685b427
No known key found for this signature in database
GPG key ID: 9EA45A31DB994C53
2 changed files with 56 additions and 0 deletions

View file

@ -0,0 +1,54 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
setuptools-scm,
wheel,
httpx,
pytest-asyncio,
pytestCheckHook,
sse-starlette,
}:
buildPythonPackage rec {
pname = "httpx-sse";
version = "0.4.0";
pyproject = true;
src = fetchFromGitHub {
owner = "florimondmanca";
repo = "httpx-sse";
rev = "refs/tags/${version}";
hash = "sha256-nU8vkmV/WynzQrSrq9+FQXtfAJPVLpMsRSuntU0HWrE=";
};
# pytest-cov configuration is not necessary for packaging
postPatch = ''
rm setup.cfg
'';
build-system = [
setuptools
setuptools-scm
wheel
];
dependencies = [ httpx ];
pythonImportsCheck = [ "httpx_sse" ];
nativeCheckInputs = [
pytest-asyncio
pytestCheckHook
sse-starlette
];
meta = with lib; {
description = "Consume Server-Sent Event (SSE) messages with HTTPX";
homepage = "https://github.com/florimondmanca/httpx-sse";
changelog = "https://github.com/florimondmanca/httpx-sse/blob/${src.rev}/CHANGELOG.md";
license = licenses.mit;
maintainers = with maintainers; [ natsukium ];
};
}

View file

@ -5513,6 +5513,8 @@ self: super: with self; {
httpx-socks = callPackage ../development/python-modules/httpx-socks { };
httpx-sse = callPackage ../development/python-modules/httpx-sse { };
huawei-lte-api = callPackage ../development/python-modules/huawei-lte-api { };
huey = callPackage ../development/python-modules/huey { };