about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/txrequests/default.nix
blob: be32dc4a7387ed7a6b96e77c7840f18512e3c2f5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{ lib
, buildPythonPackage
, fetchPypi
, twisted
, requests
, cryptography
, python
}:

buildPythonPackage rec {
  pname = "txrequests";
  version = "0.9.6";

  src = fetchPypi {
    inherit pname version;
    sha256 = "b452a1cafa4d005678f6fa47922a330feb4907d5b4732d1841ca98e89f1362e1";
  };

  propagatedBuildInputs = [ twisted requests cryptography ];

  # Require network access
  doCheck = false;

  checkPhase = ''
    ${python.interpreter} -m unittest discover
  '';

  meta = with lib; {
    description = "Asynchronous Python HTTP for Humans.";
    homepage    = "https://github.com/tardyp/txrequests";
    license     = licenses.asl20;
    maintainers = with maintainers; [ nand0p ];
  };

}