Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 6 additions & 14 deletions pkgs/development/python-modules/requests-toolbelt/default.nix
Original file line number Diff line number Diff line change
@@ -1,22 +1,21 @@
{ lib
, betamax
, buildPythonPackage
, fetchpatch
, fetchPypi
, mock
, pyopenssl
, pytestCheckHook
, requests
, trustme
}:

buildPythonPackage rec {
pname = "requests-toolbelt";
version = "0.10.1";
version = "1.0.0";
format = "setuptools";

src = fetchPypi {
inherit pname version;
hash = "sha256-YuCff/XMvakncqKfOUpJw61ssYHVaLEzdiayq7Yopj0=";
hash = "sha256-doGgo9BHAStb3A7jfX+PB+vnarCMrsz8OSHOI8iNW8Y=";
};

propagatedBuildInputs = [
Expand All @@ -25,17 +24,9 @@ buildPythonPackage rec {

nativeCheckInputs = [
betamax
mock
pyopenssl
pytestCheckHook
];

disabledTests = [
# https://github.com/requests/toolbelt/issues/306
"test_no_content_length_header"
"test_read_file"
"test_reads_file_from_url_wrapper"
"test_x509_der"
"test_x509_pem"
trustme
];

pythonImportsCheck = [
Expand All @@ -45,6 +36,7 @@ buildPythonPackage rec {
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 ];
};
Expand Down