1{ lib, fetchFromGitHub, python3Packages, awscli }:
2
3with python3Packages;
4
5buildPythonApplication rec {
6 pname = "git-remote-codecommit";
7 version = "1.15.1";
8 disabled = !isPy3k;
9
10 # The check dependency awscli has some overrides
11 # which yield a different botocore.
12 # This results in a duplicate version during installation
13 # of the wheel, even though it does not matter
14 # because it is only a test dependency.
15 catchConflicts = false;
16
17 src = fetchFromGitHub {
18 owner = "aws";
19 repo = pname;
20 rev = version;
21 sha256 = "1vvp7i8ghmq72v57f6smh441h35xnr5ar628q2mr40bzvcifwymw";
22 };
23
24 propagatedBuildInputs = [ botocore ];
25
26 nativeCheckInputs = [ pytest mock flake8 tox awscli ];
27
28 checkPhase = ''
29 pytest
30 '';
31
32 meta = {
33 description =
34 "Git remote prefix to simplify pushing to and pulling from CodeCommit";
35 maintainers = [ lib.maintainers.zaninime ];
36 homepage = "https://github.com/awslabs/git-remote-codecommit";
37 license = lib.licenses.asl20;
38 mainProgram = "git-remote-codecommit";
39 };
40}