1{ stdenv
2, buildPythonPackage
3, fetchFromGitHub
4, requests
5, python
6}:
7
8buildPythonPackage rec {
9 pname = "requests-http-signature";
10 version = "0.1.0";
11
12 # .pem files for tests aren't present on PyPI
13 src = fetchFromGitHub {
14 owner = "pyauth";
15 repo = pname;
16 rev = "v${version}";
17 sha256 = "0y96wsbci296m1rcxx0ybx8r44rdvyb59p1jl27p7rgz7isr3kx1";
18 };
19
20 propagatedBuildInputs = [ requests ];
21
22 checkPhase = ''
23 ${python.interpreter} test/test.py
24 '';
25
26 meta = with stdenv.lib; {
27 description = "A Requests auth module for HTTP Signature";
28 homepage = "https://github.com/kislyuk/requests-http-signature";
29 license = licenses.asl20;
30 maintainers = with maintainers; [ mmai ];
31 };
32}