python3Packages.requests-toolbelt: switch to pyproject (#529061)

This commit is contained in:
Matthias Beyer 2026-06-14 08:56:36 +00:00 committed by GitHub
commit 31699c38b5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -6,20 +6,22 @@
pyopenssl,
pytestCheckHook,
requests,
setuptools,
trustme,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "requests-toolbelt";
version = "1.0.0";
format = "setuptools";
pyproject = true;
src = fetchPypi {
inherit pname version;
inherit (finalAttrs) pname version;
hash = "sha256-doGgo9BHAStb3A7jfX+PB+vnarCMrsz8OSHOI8iNW8Y=";
};
propagatedBuildInputs = [ requests ];
build-system = [ setuptools ];
dependencies = [ requests ];
nativeCheckInputs = [
betamax
@ -43,8 +45,8 @@ buildPythonPackage rec {
meta = {
description = "Toolbelt of useful classes and functions to be used with requests";
homepage = "http://toolbelt.rtfd.org";
changelog = "https://github.com/requests/toolbelt/blob/${version}/HISTORY.rst";
changelog = "https://github.com/requests/toolbelt/blob/${finalAttrs.version}/HISTORY.rst";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ matthiasbeyer ];
};
}
})