about summary refs log tree commit diff
path: root/nixpkgs/pkgs/tools/admin/aws-mfa/default.nix
blob: 6e58574ee2ba083a9aa6d78ce2ba8de1590ed455 (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
40
41
42
43
44
45
46
47
{ 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";
    mainProgram = "aws-mfa";
    homepage = "https://github.com/broamski/aws-mfa";
    license = licenses.mit;
    maintainers = [ ];
  };
}