depot/third_party/nixpkgs/pkgs/tools/admin/aws-mfa/default.nix
Default email c7f94ff3ce Project import generated by Copybara.
GitOrigin-RevId: b85ed9dcbf187b909ef7964774f8847d554fab3b
2023-08-22 22:05:09 +02:00

46 lines
993 B
Nix

{ lib
, buildPythonApplication
, fetchFromGitHub
, fetchpatch
, boto3
}:
buildPythonApplication rec {
pname = "aws-mfa";
version = "0.0.12";
format = "setuptools";
src = fetchFromGitHub {
owner = "broamski";
repo = "aws-mfa";
rev = version;
hash = "sha256-XhnDri7QV8esKtx0SttWAvevE3SH2Yj2YMq/P4K6jK4=";
};
patches = [
# https://github.com/broamski/aws-mfa/pull/87
(fetchpatch {
name = "remove-duplicate-script.patch";
url = "https://github.com/broamski/aws-mfa/commit/0d1624022c71cb92bb4436964b87f0b2ffd677ec.patch";
hash = "sha256-Bv8ffPbDysz87wLg2Xip+0yxaBfbEmu+x6fSXI8BVjA=";
})
];
propagatedBuildInputs = [
boto3
];
# package has no tests
doCheck = false;
pythonImportsCheck = [
"awsmfa"
];
meta = with lib; {
description = "Manage AWS MFA Security Credentials";
homepage = "https://github.com/broamski/aws-mfa";
license = licenses.mit;
maintainers = [ maintainers.srapenne ];
};
}