nixpkgs/pkgs/applications/version-management/git-remote-codecommit/default.nix
AndersonTorres d994dabace treewide: remove git-and-tools directory
We do not use a "plugin system" for Git addons anymore, and therefore this
directory is no longer useful. Indeed that directory is way more confusing,
given that it includes more than mere Git addons, going from Bitbucket server
command-line tools to complete rewrites of Git in exotic programming languages.

Also, without this directory, the mental load of decision-making reduces a lot.
When anyone is interested in including a new git-related tool, just put it into
pkgs/applications/version-management, without apologies.
2022-12-19 15:05:22 -03:00

40 lines
1,000 B
Nix

{ 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;
};
}