python3Packages.requests-toolbelt: switch to pyproject

This commit is contained in:
Ryan Omasta 2026-06-07 02:15:25 -06:00
commit 373f683e56
No known key found for this signature in database

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 ];
};
}
})