summary refs log tree commit diff
path: root/pkgs/development/python-modules
diff options
context:
space:
mode:
authorRobert Schütz <rschuetz17@gmail.com>2018-11-04 18:38:21 +0100
committerGitHub <noreply@github.com>2018-11-04 18:38:21 +0100
commit6a73df797c4e92288918edcf128ecbd9caa1fc9e (patch)
treec93ca79d6e25b6eebc1902ac2016673e9929946e /pkgs/development/python-modules
parent76f803f44e2d085c929be6ac78f41631b5adfd35 (diff)
parent2e49503dfe4cc6dd857476bd904729eaba9dfab8 (diff)
downloadnixlib-6a73df797c4e92288918edcf128ecbd9caa1fc9e.tar
nixlib-6a73df797c4e92288918edcf128ecbd9caa1fc9e.tar.gz
nixlib-6a73df797c4e92288918edcf128ecbd9caa1fc9e.tar.bz2
nixlib-6a73df797c4e92288918edcf128ecbd9caa1fc9e.tar.lz
nixlib-6a73df797c4e92288918edcf128ecbd9caa1fc9e.tar.xz
nixlib-6a73df797c4e92288918edcf128ecbd9caa1fc9e.tar.zst
nixlib-6a73df797c4e92288918edcf128ecbd9caa1fc9e.zip
Merge pull request #49744 from nyanloutre/python-gitlab
 pythonPackages.python-gitlab: init at 1.6.0
Diffstat (limited to 'pkgs/development/python-modules')
-rw-r--r--pkgs/development/python-modules/httmock/default.nix22
-rw-r--r--pkgs/development/python-modules/python-gitlab/default.nix22
2 files changed, 44 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/httmock/default.nix b/pkgs/development/python-modules/httmock/default.nix
new file mode 100644
index 000000000000..b50753c55864
--- /dev/null
+++ b/pkgs/development/python-modules/httmock/default.nix
@@ -0,0 +1,22 @@
+{ stdenv, buildPythonPackage, fetchFromGitHub, requests }:
+
+buildPythonPackage rec {
+  pname   = "httmock";
+  version = "1.2.6";
+
+  src = fetchFromGitHub {
+    owner = "patrys";
+    repo = "httmock";
+    rev = version;
+    sha256 = "0iya8qsb2jm03s9p6sf1yzgm1irxl3dcq0k0a9ygl0skzjz5pvab";
+  };
+
+  checkInputs = [ requests ];
+
+  meta = with stdenv.lib; {
+    description = "A mocking library for requests";
+    homepage    = https://github.com/patrys/httmock;
+    license     = licenses.asl20;
+    maintainers = with maintainers; [ nyanloutre ];
+  };
+}
diff --git a/pkgs/development/python-modules/python-gitlab/default.nix b/pkgs/development/python-modules/python-gitlab/default.nix
new file mode 100644
index 000000000000..24ab69f1a0bc
--- /dev/null
+++ b/pkgs/development/python-modules/python-gitlab/default.nix
@@ -0,0 +1,22 @@
+{ stdenv, buildPythonPackage, fetchPypi, requests, six, mock, httmock }:
+
+buildPythonPackage rec {
+  pname   = "python-gitlab";
+  version = "1.6.0";
+
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "20ceb9232f9a412ce6554056a6b5039013d0755261d57b5c8ada7035773de795";
+  };
+
+  propagatedBuildInputs = [ requests six ];
+
+  checkInputs = [ mock httmock ];
+
+  meta = with stdenv.lib; {
+    description = "Interact with GitLab API";
+    homepage    = https://github.com/python-gitlab/python-gitlab;
+    license     = licenses.lgpl3;
+    maintainers = with maintainers; [ nyanloutre ];
+  };
+}