git.iko.soy/typeable/nixpkgs
on master help sign in
python3Packages.git-remote-codecommit: init at 1.15.1
commit6efc71f17b1af84964fa1f5907f1929d49873205 authorFrancesco Zanini <francesco@zanini.me> dateSat 26 Sep 2020, 13:02 (6 years ago) parent638612d
2 files changed+33
pkgs/applications/version-management/git-and-tools/default.nix+2 pkgs/applications/version-management/git-and-tools/git-remote-codecommit/default.nix+31
pkgs/applications/version-management/git-and-tools/default.nix+2
@@ -132,6 +132,8 @@ let
132132 utillinux = if stdenv.isLinux then utillinuxMinimal else utillinux;
133133 };
134134
135+ git-remote-codecommit = python3Packages.callPackage ./git-remote-codecommit { };
136+
135137 git-remote-gcrypt = callPackage ./git-remote-gcrypt { };
136138
137139 git-remote-hg = callPackage ./git-remote-hg { };
pkgs/applications/version-management/git-and-tools/git-remote-codecommit/default.nixnew file+31
@@ -0,0 +1,31 @@
1+{ lib, buildPythonApplication, fetchFromGitHub, isPy3k, botocore, pytest, mock
2+, flake8, tox, awscli }:
3+
4+buildPythonApplication rec {
5+ pname = "git-remote-codecommit";
6+ version = "1.15.1";
7+ disabled = !isPy3k;
8+
9+ src = fetchFromGitHub {
10+ owner = "aws";
11+ repo = pname;
12+ rev = version;
13+ sha256 = "1vvp7i8ghmq72v57f6smh441h35xnr5ar628q2mr40bzvcifwymw";
14+ };
15+
16+ propagatedBuildInputs = [ botocore ];
17+
18+ checkInputs = [ pytest mock flake8 tox awscli ];
19+
20+ checkPhase = ''
21+ pytest
22+ '';
23+
24+ meta = {
25+ description =
26+ "Git remote prefix to simplify pushing to and pulling from CodeCommit";
27+ maintainers = [ lib.maintainers.zaninime ];
28+ homepage = "https://github.com/awslabs/git-remote-codecommit";
29+ license = lib.licenses.asl20;
30+ };
31+}