nixpkgs/pkgs/by-name/aw/awslimitchecker/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

64 lines
1.5 KiB
Nix
Raw Normal View History

2024-04-23 07:39:03 +00:00
{
lib,
fetchFromGitHub,
python3,
}:
2021-10-13 14:44:04 +00:00
python3.pkgs.buildPythonApplication rec {
2021-10-13 14:44:04 +00:00
pname = "awslimitchecker";
version = "12.0.0";
pyproject = true;
2021-10-13 14:44:04 +00:00
src = fetchFromGitHub {
owner = "jantman";
repo = "awslimitchecker";
rev = "refs/tags/${version}";
hash = "sha256-+8F7qOfAFoFNZ6GG5ezTA/LWENpJvbcPdtpQH/8k1tw=";
2021-10-13 14:44:04 +00:00
};
patches = [
# Fix the version lookup to use only the hardcoded version in the source package
./version.patch
];
2024-04-23 07:39:03 +00:00
build-system = with python3.pkgs; [ setuptools ];
dependencies = with python3.pkgs; [
2021-10-13 14:44:04 +00:00
boto3
botocore
pytz
termcolor
versionfinder
];
nativeCheckInputs = with python3.pkgs; [
2021-10-13 14:44:04 +00:00
freezegun
onetimepass
pyotp
mock
(pytestCheckHook.override { pytest = pytest_7; })
2021-10-13 14:44:04 +00:00
testfixtures
];
disabledTestPaths = [
# AWS tests that use the network
"awslimitchecker/tests/services"
"awslimitchecker/tests/test_checker.py"
"awslimitchecker/tests/test_runner.py"
# the version lookup tests as patched above
"awslimitchecker/tests/test_version.py"
];
2024-04-23 07:39:03 +00:00
pythonImportsCheck = [ "awslimitchecker.checker" ];
2021-10-13 14:44:04 +00:00
meta = with lib; {
description = "Script and python package to check your AWS service limits and usage via boto3";
2021-10-13 14:44:04 +00:00
homepage = "http://awslimitchecker.readthedocs.org";
changelog = "https://github.com/jantman/awslimitchecker/blob/${version}/CHANGES.rst";
license = licenses.agpl3Plus;
maintainers = with maintainers; [ zakame ];
mainProgram = "awslimitchecker";
2021-10-13 14:44:04 +00:00
};
}