2017-09-26 19:31:57 +02:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, requests
|
|
|
|
, betamax
|
|
|
|
, mock
|
|
|
|
, pytest
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "requests-toolbelt";
|
|
|
|
version = "0.8.0";
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "f6a531936c6fa4c6cfce1b9c10d5c4f498d16528d2a54a22ca00011205a187b5";
|
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [ betamax mock pytest ];
|
|
|
|
propagatedBuildInputs = [ requests ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
py.test tests
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A toolbelt of useful classes and functions to be used with python-requests";
|
|
|
|
homepage = http://toolbelt.rtfd.org;
|
2018-04-06 10:57:19 +02:00
|
|
|
maintainers = with lib.maintainers; [ jgeerds ];
|
2017-09-26 19:31:57 +02:00
|
|
|
};
|
2018-04-06 10:57:19 +02:00
|
|
|
}
|