@@ -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+}