fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
50 lines
1.1 KiB
Nix
50 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
betamax,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
pyopenssl,
|
|
pytestCheckHook,
|
|
requests,
|
|
trustme,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "requests-toolbelt";
|
|
version = "1.0.0";
|
|
format = "setuptools";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-doGgo9BHAStb3A7jfX+PB+vnarCMrsz8OSHOI8iNW8Y=";
|
|
};
|
|
|
|
propagatedBuildInputs = [ requests ];
|
|
|
|
nativeCheckInputs = [
|
|
betamax
|
|
pyopenssl
|
|
pytestCheckHook
|
|
trustme
|
|
];
|
|
|
|
disabledTests = [
|
|
# incompatible with urllib3 2.0
|
|
"test_dump_response"
|
|
"test_dump_all"
|
|
"test_prepared_request_override_base"
|
|
"test_prepared_request_with_base"
|
|
"test_request_override_base"
|
|
"test_request_with_base"
|
|
];
|
|
|
|
pythonImportsCheck = [ "requests_toolbelt" ];
|
|
|
|
meta = with lib; {
|
|
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";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ matthiasbeyer ];
|
|
};
|
|
}
|