summary refs log tree commit diff
path: root/pkgs/development/python-modules/httpsig/default.nix
blob: 24ba9be138225c1b8070fc544c865c5eca8cf8b7 (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
{ lib
, buildPythonPackage
, fetchPypi
, setuptools_scm
, pycryptodome
, requests
}:

buildPythonPackage rec {
  pname = "httpsig";
  version = "1.3.0";

  src = fetchPypi {
    inherit pname version;
    sha256 = "1rkc3zwsq53rjsmc47335m4viljiwdbmw3y2zry4z70j8q1dbmki";
  };

  buildInputs = [ setuptools_scm ];
  propagatedBuildInputs = [ pycryptodome requests ];

  # Jailbreak pycryptodome
  preBuild = ''
    substituteInPlace setup.py --replace "==3.4.7" ""
  '';

  meta = with lib; {
    description = "Sign HTTP requests with secure signatures";
    license = licenses.mit;
    maintainers = with maintainers; [ srhb ];
    homepage = https://github.com/ahknight/httpsig;
  };
}