Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions pkgs/development/python-modules/httmock/default.nix
Original file line number Diff line number Diff line change
@@ -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 ];
};
}
22 changes: 22 additions & 0 deletions pkgs/development/python-modules/python-gitlab/default.nix
Original file line number Diff line number Diff line change
@@ -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 ];
};
}
4 changes: 4 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -1626,6 +1626,8 @@ in {
inherit (pkgs.gitAndTools) git-annex;
};

python-gitlab = callPackage ../development/python-modules/python-gitlab { };

google-cloud-sdk = callPackage ../tools/admin/google-cloud-sdk { };
google-cloud-sdk-gce = callPackage ../tools/admin/google-cloud-sdk { with-gce=true; };

Expand Down Expand Up @@ -2438,6 +2440,8 @@ in {

html5lib = callPackage ../development/python-modules/html5lib { };

httmock = callPackage ../development/python-modules/httmock { };

http_signature = callPackage ../development/python-modules/http_signature { };

httpbin = callPackage ../development/python-modules/httpbin { };
Expand Down