fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
35 lines
849 B
Nix
35 lines
849 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
pythonOlder,
|
|
requests,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "requests-futures";
|
|
version = "1.0.1";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-9VpO+ABw4oWOfR5zEj0r+uryW5P9NDhNjd8UjitnY3M=";
|
|
};
|
|
|
|
propagatedBuildInputs = [ requests ];
|
|
|
|
# Tests are disabled because they require being online
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "requests_futures" ];
|
|
|
|
meta = with lib; {
|
|
description = "Asynchronous Python HTTP Requests for Humans using Futures";
|
|
homepage = "https://github.com/ross/requests-futures";
|
|
changelog = "https://github.com/ross/requests-futures/blob/v${version}/CHANGELOG.md";
|
|
license = with licenses; [ asl20 ];
|
|
maintainers = with maintainers; [ applePrincess ];
|
|
};
|
|
}
|