2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
pythonOlder,
|
|
|
|
requests,
|
2023-07-15 17:15:38 +00:00
|
|
|
}:
|
2021-07-24 12:14:16 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "requests-futures";
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "1.0.1";
|
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2021-07-24 12:14:16 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-9VpO+ABw4oWOfR5zEj0r+uryW5P9NDhNjd8UjitnY3M=";
|
2021-07-24 12:14:16 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
propagatedBuildInputs = [ requests ];
|
2021-07-24 12:14:16 +00:00
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
# Tests are disabled because they require being online
|
2021-07-24 12:14:16 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "requests_futures" ];
|
2021-07-24 12:14:16 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Asynchronous Python HTTP Requests for Humans using Futures";
|
|
|
|
homepage = "https://github.com/ross/requests-futures";
|
2023-07-15 17:15:38 +00:00
|
|
|
changelog = "https://github.com/ross/requests-futures/blob/v${version}/CHANGELOG.md";
|
2021-07-24 12:14:16 +00:00
|
|
|
license = with licenses; [ asl20 ];
|
|
|
|
maintainers = with maintainers; [ applePrincess ];
|
|
|
|
};
|
|
|
|
}
|