blob: 1223fc607040681a9e35e65f6569054b7d825edf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
hatchling,
aiohttp,
httpx,
}:
buildPythonPackage rec {
pname = "httpx-aiohttp";
version = "0.1.9";
pyproject = true;
src = fetchFromGitHub {
owner = "karpetrosyan";
repo = "httpx-aiohttp";
tag = version;
hash = "sha256-XngJwwolGsiT5AAsDvyQWOi4VEp7ItMdqeoQG6cyDlk=";
fetchSubmodules = true;
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail "requires = [\"hatchling\", \"hatch-fancy-pypi-readme\"]" \
"requires = [\"hatchling\"]"
'';
build-system = [
hatchling
];
dependencies = [
aiohttp
httpx
];
pythonImportsCheck = [
"httpx_aiohttp"
];
meta = {
description = "Transports for httpx to work atop aiohttp";
homepage = "https://github.com/karpetrosyan/httpx-aiohttp/";
changelog = "https://github.com/karpetrosyan/httpx-aiohttp/blob/${src.rev}/CHANGELOG.md";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ sarahec ];
};
}
|