summary refs log tree commit diff
path: root/pkgs/applications/version-management/git-and-tools/git-remote-codecommit/default.nix
blob: 8ada5cc42f54e2d4907f3e41e6e286eaaf80dab6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{ lib, fetchFromGitHub, python3Packages, awscli }:

with python3Packages;

buildPythonApplication rec {
  pname = "git-remote-codecommit";
  version = "1.15.1";
  disabled = !isPy3k;

  # The check dependency awscli has some overrides
  # which yield a different botocore.
  # This results in a duplicate version during installation
  # of the wheel, even though it does not matter
  # because it is only a test dependency.
  catchConflicts = false;

  src = fetchFromGitHub {
    owner = "aws";
    repo = pname;
    rev = version;
    sha256 = "1vvp7i8ghmq72v57f6smh441h35xnr5ar628q2mr40bzvcifwymw";
  };

  propagatedBuildInputs = [ botocore ];

  checkInputs = [ pytest mock flake8 tox awscli ];

  checkPhase = ''
    pytest
  '';

  meta = {
    description =
      "Git remote prefix to simplify pushing to and pulling from CodeCommit";
    maintainers = [ lib.maintainers.zaninime ];
    homepage = "https://github.com/awslabs/git-remote-codecommit";
    license = lib.licenses.asl20;
  };
}