summary refs log tree commit diff
path: root/pkgs/development/python-modules/requests-http-signature/default.nix
blob: 992c54930ca62a4eaff496af8f914aafd5c1c6e3 (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
{ stdenv
, buildPythonPackage
, fetchFromGitHub
, requests
, python
}:

buildPythonPackage rec {
  pname = "requests-http-signature";
  version = "0.1.0";

  # .pem files for tests aren't present on PyPI
  src = fetchFromGitHub {
    owner = "pyauth";
    repo = pname;
    rev = "v${version}";
    sha256 = "0y96wsbci296m1rcxx0ybx8r44rdvyb59p1jl27p7rgz7isr3kx1";
  };

  propagatedBuildInputs = [ requests ];

  checkPhase = ''
    ${python.interpreter} test/test.py
  '';

  meta = with stdenv.lib; {
    description = "A Requests auth module for HTTP Signature";
    homepage = "https://github.com/kislyuk/requests-http-signature";
    license = licenses.asl20;
    maintainers = with maintainers; [ mmai ];
  };
}