From 4870041ca134796fd7f4b0fa73e89c6d6a8a9b32 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sun, 19 Jan 2025 21:18:10 +0100 Subject: [PATCH] python3Packages.requests-futures: 1.0.1 -> 1.0.2 https://github.com/ross/requests-futures/blob/v1.0.2/CHANGELOG.md --- .../requests-futures/default.nix | 35 +++++++++++++------ 1 file changed, 25 insertions(+), 10 deletions(-) diff --git a/pkgs/development/python-modules/requests-futures/default.nix b/pkgs/development/python-modules/requests-futures/default.nix index e370ec6f846f..6e146fe753b9 100644 --- a/pkgs/development/python-modules/requests-futures/default.nix +++ b/pkgs/development/python-modules/requests-futures/default.nix @@ -1,34 +1,49 @@ { lib, buildPythonPackage, - fetchPypi, + fetchFromGitHub, pythonOlder, + setuptools, requests, + greenlet, + pytestCheckHook, + pytest-cov-stub, + pytest-httpbin, + werkzeug, }: buildPythonPackage rec { pname = "requests-futures"; - version = "1.0.1"; - format = "setuptools"; + version = "1.0.2"; + pyproject = true; disabled = pythonOlder "3.7"; - src = fetchPypi { - inherit pname version; - hash = "sha256-9VpO+ABw4oWOfR5zEj0r+uryW5P9NDhNjd8UjitnY3M="; + src = fetchFromGitHub { + owner = "ross"; + repo = "requests-futures"; + tag = "v${version}"; + hash = "sha256-eUu+M9rPyvc7OaOCCnUvGliK4gicYh6hfB0Jo19Yy1g="; }; - propagatedBuildInputs = [ requests ]; + build-system = [ setuptools ]; - # Tests are disabled because they require being online - doCheck = false; + dependencies = [ requests ]; + + nativeCheckInputs = [ + greenlet + pytestCheckHook + pytest-cov-stub + pytest-httpbin + werkzeug + ]; 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"; + changelog = "https://github.com/ross/requests-futures/blob/${src.tag}/CHANGELOG.md"; license = with licenses; [ asl20 ]; maintainers = with maintainers; [ applePrincess ]; };