at 22.05-pre 58 lines 1.4 kB view raw
1{ lib, python3Packages, fetchFromGitHub }: 2 3python3Packages.buildPythonApplication rec { 4 pname = "awslimitchecker"; 5 version = "12.0.0"; 6 7 src = fetchFromGitHub { 8 owner = "jantman"; 9 repo = "awslimitchecker"; 10 rev = version; 11 sha256 = "1p6n4kziyl6sfq7vgga9v88ddwh3sgnfb1m1cx6q25n0wyl7phgv"; 12 }; 13 14 propagatedBuildInputs = with python3Packages; [ 15 boto3 16 botocore 17 pytz 18 termcolor 19 versionfinder 20 ]; 21 22 checkInputs = with python3Packages; [ 23 freezegun 24 onetimepass 25 pytestCheckHook 26 pyotp 27 testfixtures 28 ]; 29 30 patches = [ 31 # Fix the version lookup to use only the hardcoded version in the source package 32 ./version.patch 33 ]; 34 35 pytestFlagsArray = [ 36 "awslimitchecker/tests" 37 ]; 38 39 disabledTestPaths = [ 40 # AWS tests that use the network 41 "awslimitchecker/tests/services" 42 "awslimitchecker/tests/test_checker.py" 43 "awslimitchecker/tests/test_runner.py" 44 45 # the version lookup tests as patched above 46 "awslimitchecker/tests/test_version.py" 47 ]; 48 49 pythonImportsCheck = [ "awslimitchecker.checker" ]; 50 51 meta = with lib; { 52 homepage = "http://awslimitchecker.readthedocs.org"; 53 changelog = "https://github.com/jantman/awslimitchecker/blob/${version}/CHANGES.rst"; 54 description = "A script and python package to check your AWS service limits and usage via boto3"; 55 license = licenses.agpl3Plus; 56 maintainers = with maintainers; [ zakame ]; 57 }; 58}