about summary refs log tree commit diff
path: root/pkgs/development/python-modules
diff options
context:
space:
mode:
authorFabian Affolter <mail@fabian-affolter.ch>2021-01-22 10:15:47 +0100
committerFabian Affolter <mail@fabian-affolter.ch>2021-01-22 10:50:06 +0100
commit8e8e759c7234ba25245ae833a71b3d1e9882bbfc (patch)
tree55ef931a071077d05dc34b722cbd5fa29a6e469d /pkgs/development/python-modules
parentcc4c7328ee9e00b1a145b5ac23e288f7dba24b5d (diff)
downloadnixlib-8e8e759c7234ba25245ae833a71b3d1e9882bbfc.tar
nixlib-8e8e759c7234ba25245ae833a71b3d1e9882bbfc.tar.gz
nixlib-8e8e759c7234ba25245ae833a71b3d1e9882bbfc.tar.bz2
nixlib-8e8e759c7234ba25245ae833a71b3d1e9882bbfc.tar.lz
nixlib-8e8e759c7234ba25245ae833a71b3d1e9882bbfc.tar.xz
nixlib-8e8e759c7234ba25245ae833a71b3d1e9882bbfc.tar.zst
nixlib-8e8e759c7234ba25245ae833a71b3d1e9882bbfc.zip
python3Packages.python-http-client: init at 3.3.1
Diffstat (limited to 'pkgs/development/python-modules')
-rw-r--r--pkgs/development/python-modules/python-http-client/default.nix34
1 files changed, 34 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/python-http-client/default.nix b/pkgs/development/python-modules/python-http-client/default.nix
new file mode 100644
index 000000000000..f4b19ba379e4
--- /dev/null
+++ b/pkgs/development/python-modules/python-http-client/default.nix
@@ -0,0 +1,34 @@
+{ lib
+, buildPythonPackage
+, fetchFromGitHub
+, mock
+, pytestCheckHook
+}:
+
+buildPythonPackage rec {
+  pname = "python_http_client";
+  version = "3.3.1";
+
+  src = fetchFromGitHub {
+    owner = "sendgrid";
+    repo = "python-http-client";
+    rev = version;
+    sha256 = "0mbcg0vb9v41v7hbvycrxx5wyrf3ysvfgxkix8hn8c4x5l2lmidc";
+  };
+
+  checkInputs = [
+    mock
+    pytestCheckHook
+  ];
+
+  # Failure was fixed by https://github.com/sendgrid/python-http-client/commit/6d62911ab0d0645b499e14bb17c302b48f3c10e4
+  disabledTests = [ "test__daterange" ];
+  pythonImportsCheck = [ "python_http_client" ];
+
+  meta = with lib; {
+    description = "Python HTTP library to call APIs";
+    homepage = "https://github.com/sendgrid/python-http-client";
+    license = with licenses; [ mit ];
+    maintainers = with maintainers; [ fab ];
+  };
+}