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