summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/httpsig
diff options
context:
space:
mode:
authorLinus Heckemann <git@sphalerite.org>2018-11-30 15:46:10 +0100
committerLinus Heckemann <git@sphalerite.org>2018-12-05 12:12:42 +0100
commit9504292b1e9948fb286b1b1cdbe83f66b367b64d (patch)
tree5c569c87d8ad0186baf3fe45315219b0f1f73ea6 /pkgs/development/python-modules/httpsig
parent8887e1f697d9e13ad277ca7d7054bc42c2459548 (diff)
parent76c7a8bac083522ea10ba43f699421ca64007708 (diff)
Merge remote-tracking branch 'origin/master' into weechat-unwrapped
Diffstat (limited to 'pkgs/development/python-modules/httpsig')
-rw-r--r--pkgs/development/python-modules/httpsig/default.nix32
1 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/httpsig/default.nix b/pkgs/development/python-modules/httpsig/default.nix
new file mode 100644
index 000000000000..cff72de36077
--- /dev/null
+++ b/pkgs/development/python-modules/httpsig/default.nix
@@ -0,0 +1,32 @@
+{ lib
+, buildPythonPackage
+, fetchPypi
+, setuptools_scm
+, pycryptodome
+, requests
+}:
+
+buildPythonPackage rec {
+ pname = "httpsig";
+ version = "1.2.0";
+
+ src = fetchPypi {
+ inherit pname version;
+ sha256 = "19ng7y7blp13z081z5a6dxng1p8xlih7g6frmsg3q5ri8lvpybc7";
+ };
+
+ 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;
+ };
+}