2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2018-10-29 15:42:54 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, twisted
|
|
|
|
, requests
|
|
|
|
, cryptography
|
|
|
|
, python
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "txrequests";
|
2018-11-04 10:35:20 +00:00
|
|
|
version = "0.9.6";
|
2018-10-29 15:42:54 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-11-04 10:35:20 +00:00
|
|
|
sha256 = "b452a1cafa4d005678f6fa47922a330feb4907d5b4732d1841ca98e89f1362e1";
|
2018-10-29 15:42:54 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ twisted requests cryptography ];
|
|
|
|
|
|
|
|
# Require network access
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
${python.interpreter} -m unittest discover
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-10-29 15:42:54 +00:00
|
|
|
description = "Asynchronous Python HTTP for Humans.";
|
|
|
|
homepage = "https://github.com/tardyp/txrequests";
|
|
|
|
license = licenses.asl20;
|
2021-05-14 15:00:41 +01:00
|
|
|
maintainers = with maintainers; [ ];
|
2018-10-29 15:42:54 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|