1{ lib
2, buildPythonPackage
3, pythonOlder
4, fetchFromGitHub
5, anyio
6, async_generator
7, h11
8, curio
9, overly
10, pytestCheckHook
11, trio
12}:
13
14buildPythonPackage rec {
15 pname = "asks";
16 version = "3.0.0";
17
18 disabled = pythonOlder "3.6";
19
20 format = "setuptools";
21
22 src = fetchFromGitHub {
23 owner = "theelous3";
24 repo = "asks";
25 rev = "v${version}";
26 hash = "sha256-ipQ5n2386DqR3kNpmTVhNPG+LC7gfCbvrlZ97+UP55g=";
27 };
28
29 propagatedBuildInputs = [
30 anyio
31 async_generator
32 h11
33 ];
34
35 checkInputs = [
36 curio
37 overly
38 pytestCheckHook
39 trio
40 ];
41
42 pythonImportsCheck = [ "asks" ];
43
44 meta = {
45 description = "Async requests-like HTTP library for Python";
46 homepage = "https://github.com/theelous3/asks";
47 license = lib.licenses.mit;
48 maintainers = with lib.maintainers; [ dotlambda ];
49 };
50}