summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/httpsig
diff options
context:
space:
mode:
authorMatthew Bauer <mjbauer95@gmail.com>2019-05-02 17:37:20 -0400
committerGitHub <noreply@github.com>2019-05-02 17:37:20 -0400
commit296e8fef618c7597c3dfa84be2fcdb2771350b61 (patch)
tree36c75341bd3f64da0d722da4fb30ec3a8d0fad87 /pkgs/development/python-modules/httpsig
parent4688f4078fa655fa3e56a8a4b2591fb195a7eceb (diff)
parent3567b1390fde8681a0f0b4581f2babbe863ede9a (diff)
Merge branch 'staging' into mesa_3
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..24ba9be13822
--- /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.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;
+ };
+}