1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 pythonOlder,
6 requests,
7}:
8
9buildPythonPackage rec {
10 pname = "requests-futures";
11 version = "1.0.1";
12 format = "setuptools";
13
14 disabled = pythonOlder "3.7";
15
16 src = fetchPypi {
17 inherit pname version;
18 hash = "sha256-9VpO+ABw4oWOfR5zEj0r+uryW5P9NDhNjd8UjitnY3M=";
19 };
20
21 propagatedBuildInputs = [ requests ];
22
23 # Tests are disabled because they require being online
24 doCheck = false;
25
26 pythonImportsCheck = [ "requests_futures" ];
27
28 meta = with lib; {
29 description = "Asynchronous Python HTTP Requests for Humans using Futures";
30 homepage = "https://github.com/ross/requests-futures";
31 changelog = "https://github.com/ross/requests-futures/blob/v${version}/CHANGELOG.md";
32 license = with licenses; [ asl20 ];
33 maintainers = with maintainers; [ applePrincess ];
34 };
35}