tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
awslimitchecker: refactor
- override pytest
Fabian Affolter
2 years ago
9e9aa732
8748ff8a
+26
-23
1 changed file
expand all
collapse all
unified
split
pkgs
tools
admin
awslimitchecker
default.nix
+26
-23
pkgs/tools/admin/awslimitchecker/default.nix
···
1
1
-
{ lib, python3Packages, fetchFromGitHub }:
1
1
+
{ lib
2
2
+
, fetchFromGitHub
3
3
+
, python3
4
4
+
}:
2
5
3
3
-
python3Packages.buildPythonApplication rec {
6
6
+
python3.pkgs.buildPythonApplication rec {
4
7
pname = "awslimitchecker";
5
8
version = "12.0.0";
9
9
+
pyproject = true;
6
10
7
11
src = fetchFromGitHub {
8
12
owner = "jantman";
9
13
repo = "awslimitchecker";
10
10
-
rev = version;
11
11
-
sha256 = "1p6n4kziyl6sfq7vgga9v88ddwh3sgnfb1m1cx6q25n0wyl7phgv";
14
14
+
rev = "refs/tags/${version}";
15
15
+
hash = "sha256-+8F7qOfAFoFNZ6GG5ezTA/LWENpJvbcPdtpQH/8k1tw=";
12
16
};
13
17
14
14
-
propagatedBuildInputs = with python3Packages; [
18
18
+
patches = [
19
19
+
# Fix the version lookup to use only the hardcoded version in the source package
20
20
+
./version.patch
21
21
+
];
22
22
+
23
23
+
build-system = with python3.pkgs; [
24
24
+
setuptools
25
25
+
];
26
26
+
27
27
+
dependencies = with python3.pkgs; [
15
28
boto3
16
29
botocore
17
30
pytz
···
19
32
versionfinder
20
33
];
21
34
22
22
-
nativeCheckInputs = with python3Packages; [
35
35
+
nativeCheckInputs = with python3.pkgs; [
23
36
freezegun
24
37
onetimepass
25
25
-
pytestCheckHook
26
38
pyotp
39
39
+
mock
40
40
+
(pytestCheckHook.override { pytest = pytest_7; })
27
41
testfixtures
28
42
];
29
43
30
30
-
patches = [
31
31
-
# Fix the version lookup to use only the hardcoded version in the source package
32
32
-
./version.patch
33
33
-
];
34
34
-
35
35
-
pytestFlagsArray = [
36
36
-
"awslimitchecker/tests"
37
37
-
38
38
-
# Upstream did not adapt to pytest 8 yet.
39
39
-
"-W"
40
40
-
"ignore::pytest.PytestRemovedIn8Warning"
41
41
-
];
42
42
-
43
44
disabledTestPaths = [
44
45
# AWS tests that use the network
45
46
"awslimitchecker/tests/services"
···
50
51
"awslimitchecker/tests/test_version.py"
51
52
];
52
53
53
53
-
pythonImportsCheck = [ "awslimitchecker.checker" ];
54
54
+
pythonImportsCheck = [
55
55
+
"awslimitchecker.checker"
56
56
+
];
54
57
55
58
meta = with lib; {
59
59
+
description = "A script and python package to check your AWS service limits and usage via boto3";
56
60
homepage = "http://awslimitchecker.readthedocs.org";
57
61
changelog = "https://github.com/jantman/awslimitchecker/blob/${version}/CHANGES.rst";
58
58
-
description = "A script and python package to check your AWS service limits and usage via boto3";
59
59
-
mainProgram = "awslimitchecker";
60
62
license = licenses.agpl3Plus;
61
63
maintainers = with maintainers; [ zakame ];
64
64
+
mainProgram = "awslimitchecker";
62
65
};
63
66
}