2022-10-30 15:09:59 +00:00
|
|
|
{ lib, fetchFromGitHub, python3Packages, awscli }:
|
|
|
|
|
|
|
|
with python3Packages;
|
2020-10-07 09:15:18 +00:00
|
|
|
|
|
|
|
buildPythonApplication rec {
|
|
|
|
pname = "git-remote-codecommit";
|
|
|
|
version = "1.15.1";
|
|
|
|
disabled = !isPy3k;
|
|
|
|
|
2022-10-30 15:09:59 +00:00
|
|
|
# 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;
|
|
|
|
|
2020-10-07 09:15:18 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "aws";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
|
|
|
sha256 = "1vvp7i8ghmq72v57f6smh441h35xnr5ar628q2mr40bzvcifwymw";
|
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ botocore ];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ pytest mock flake8 tox awscli ];
|
2020-10-07 09:15:18 +00:00
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|