|
|
@ -1,5 +1,10 @@ |
|
|
|
{ lib, fetchPypi, buildPythonPackage, service-identity, requests, six |
|
|
|
{ lib |
|
|
|
, mock, twisted, incremental, pep8, httpbin |
|
|
|
, fetchPypi |
|
|
|
|
|
|
|
, buildPythonPackage |
|
|
|
|
|
|
|
, requests |
|
|
|
|
|
|
|
, twisted |
|
|
|
|
|
|
|
, incremental |
|
|
|
|
|
|
|
, httpbin |
|
|
|
}: |
|
|
|
}: |
|
|
|
|
|
|
|
|
|
|
|
buildPythonPackage rec { |
|
|
|
buildPythonPackage rec { |
|
|
@ -13,44 +18,23 @@ buildPythonPackage rec { |
|
|
|
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ |
|
|
|
propagatedBuildInputs = [ |
|
|
|
requests |
|
|
|
requests |
|
|
|
six |
|
|
|
|
|
|
|
incremental |
|
|
|
incremental |
|
|
|
service-identity |
|
|
|
|
|
|
|
twisted |
|
|
|
twisted |
|
|
|
] |
|
|
|
] ++ twisted.extras.tls; |
|
|
|
# twisted [tls] requirements (we should find a way to list "extras") |
|
|
|
|
|
|
|
++ twisted.extras.tls; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
checkInputs = [ |
|
|
|
checkInputs = [ |
|
|
|
pep8 |
|
|
|
|
|
|
|
mock |
|
|
|
|
|
|
|
httpbin |
|
|
|
httpbin |
|
|
|
|
|
|
|
twisted |
|
|
|
]; |
|
|
|
]; |
|
|
|
|
|
|
|
|
|
|
|
postPatch = '' |
|
|
|
|
|
|
|
rm -fv src/treq/test/test_treq_integration.py |
|
|
|
|
|
|
|
''; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# XXX tox tries to install coverage despite it is installed |
|
|
|
|
|
|
|
#postBuild = '' |
|
|
|
|
|
|
|
# # build documentation and install in $out |
|
|
|
|
|
|
|
# tox -e docs |
|
|
|
|
|
|
|
# mkdir -pv $out/docs |
|
|
|
|
|
|
|
# cp -rv docs/* $out/docs/ |
|
|
|
|
|
|
|
#''; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
checkPhase = '' |
|
|
|
checkPhase = '' |
|
|
|
pep8 --ignore=E902 treq |
|
|
|
|
|
|
|
trial treq |
|
|
|
trial treq |
|
|
|
''; |
|
|
|
''; |
|
|
|
|
|
|
|
|
|
|
|
# Failing tests https://github.com/twisted/treq/issues/208 |
|
|
|
|
|
|
|
doCheck = false; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
meta = with lib; { |
|
|
|
meta = with lib; { |
|
|
|
homepage = "https://github.com/twisted/treq"; |
|
|
|
homepage = "https://github.com/twisted/treq"; |
|
|
|
description = "A requests-like API built on top of twisted.web's Agent"; |
|
|
|
description = "Requests-like API built on top of twisted.web's Agent"; |
|
|
|
license = licenses.mit; |
|
|
|
license = licenses.mit; |
|
|
|
maintainers = with maintainers; [ ]; |
|
|
|
maintainers = with maintainers; [ SuperSandro2000 ]; |
|
|
|
}; |
|
|
|
}; |
|
|
|
} |
|
|
|
} |
|
|
|