1{ stdenv
2, buildPythonPackage
3, fetchPypi
4, twisted
5, requests
6, cryptography
7, python
8}:
9
10buildPythonPackage rec {
11 pname = "txrequests";
12 version = "0.9.6";
13
14 src = fetchPypi {
15 inherit pname version;
16 sha256 = "b452a1cafa4d005678f6fa47922a330feb4907d5b4732d1841ca98e89f1362e1";
17 };
18
19 propagatedBuildInputs = [ twisted requests cryptography ];
20
21 # Require network access
22 doCheck = false;
23
24 checkPhase = ''
25 ${python.interpreter} -m unittest discover
26 '';
27
28 meta = with stdenv.lib; {
29 description = "Asynchronous Python HTTP for Humans.";
30 homepage = "https://github.com/tardyp/txrequests";
31 license = licenses.asl20;
32 maintainers = with maintainers; [ nand0p ];
33 };
34
35}