1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pythonOlder,
6 setuptools,
7 requests,
8 greenlet,
9 pytestCheckHook,
10 pytest-cov-stub,
11 pytest-httpbin,
12 werkzeug,
13}:
14
15buildPythonPackage rec {
16 pname = "requests-futures";
17 version = "1.0.2";
18 pyproject = true;
19
20 disabled = pythonOlder "3.7";
21
22 src = fetchFromGitHub {
23 owner = "ross";
24 repo = "requests-futures";
25 tag = "v${version}";
26 hash = "sha256-eUu+M9rPyvc7OaOCCnUvGliK4gicYh6hfB0Jo19Yy1g=";
27 };
28
29 build-system = [ setuptools ];
30
31 dependencies = [ requests ];
32
33 nativeCheckInputs = [
34 greenlet
35 pytestCheckHook
36 pytest-cov-stub
37 pytest-httpbin
38 werkzeug
39 ];
40
41 pythonImportsCheck = [ "requests_futures" ];
42
43 meta = with lib; {
44 description = "Asynchronous Python HTTP Requests for Humans using Futures";
45 homepage = "https://github.com/ross/requests-futures";
46 changelog = "https://github.com/ross/requests-futures/blob/${src.tag}/CHANGELOG.md";
47 license = with licenses; [ asl20 ];
48 maintainers = with maintainers; [ applePrincess ];
49 };
50}