nixpkgs/pkgs/development/python-modules/aws-adfs/default.nix
Benjamin Hipple 7b4132f99e aws-adfs: 1.12.3 -> 1.17.0
This commit also adds it as an application in all-packages.nix, since it's
typically used as just a stand-alone cmdline tool.
2019-09-09 22:38:15 -04:00

34 lines
977 B
Nix

{ lib, buildPythonPackage, fetchPypi
, pytest, pytestrunner, pytestcov, mock, glibcLocales, lxml, boto3, requests, click, configparser }:
buildPythonPackage rec {
pname = "aws-adfs";
version = "1.17.0";
src = fetchPypi {
inherit pname version;
sha256 = "0wnsmwjpfhxilmvrqvwilcf3h9p5m5ixi5gn9bgkr3gwd2laxf54";
};
# Relax version constraint
patchPhase = ''
sed -i 's/coverage < 4/coverage/' setup.py
'';
# Test suite writes files to $HOME/.aws/, or /homeless-shelter if unset
HOME = ".";
# Required for python3 tests, along with glibcLocales
LC_ALL = "en_US.UTF-8";
checkInputs = [ glibcLocales pytest pytestrunner pytestcov mock ];
propagatedBuildInputs = [ lxml boto3 requests click configparser ];
meta = with lib; {
description = "Command line tool to ease aws cli authentication against ADFS";
homepage = https://github.com/venth/aws-adfs;
license = licenses.psfl;
maintainers = [ maintainers.bhipple ];
};
}