1{
2 lib,
3 buildPythonApplication,
4 fetchFromGitHub,
5 fetchpatch,
6 setuptools,
7 boto3,
8}:
9
10buildPythonApplication rec {
11 pname = "aws-mfa";
12 version = "0.0.12";
13 pyproject = true;
14
15 src = fetchFromGitHub {
16 owner = "broamski";
17 repo = "aws-mfa";
18 rev = version;
19 hash = "sha256-XhnDri7QV8esKtx0SttWAvevE3SH2Yj2YMq/P4K6jK4=";
20 };
21
22 patches = [
23 # https://github.com/broamski/aws-mfa/pull/87
24 (fetchpatch {
25 name = "remove-duplicate-script.patch";
26 url = "https://github.com/broamski/aws-mfa/commit/0d1624022c71cb92bb4436964b87f0b2ffd677ec.patch";
27 hash = "sha256-Bv8ffPbDysz87wLg2Xip+0yxaBfbEmu+x6fSXI8BVjA=";
28 })
29 ];
30
31 build-system = [
32 setuptools
33 ];
34
35 dependencies = [
36 boto3
37 ];
38
39 # package has no tests
40 doCheck = false;
41
42 pythonImportsCheck = [
43 "awsmfa"
44 ];
45
46 meta = with lib; {
47 description = "Manage AWS MFA Security Credentials";
48 mainProgram = "aws-mfa";
49 homepage = "https://github.com/broamski/aws-mfa";
50 license = licenses.mit;
51 maintainers = [ ];
52 };
53}