1{
2 lib,
3 attrs,
4 buildPythonPackage,
5 fetchFromGitHub,
6 py,
7 pytest-mypy,
8 pytest-pycodestyle,
9 pytest-pylint,
10 pytest,
11 pytestCheckHook,
12 requests,
13 setuptools,
14 types-requests,
15 types-setuptools,
16 writableTmpDirAsHomeHook,
17}:
18
19buildPythonPackage rec {
20 pname = "pytest-docker";
21 version = "3.2.3";
22 pyproject = true;
23
24 src = fetchFromGitHub {
25 owner = "avast";
26 repo = "pytest-docker";
27 tag = "v${version}";
28 hash = "sha256-LV4v4vyfXwFHOYJdS3kPyPbFWpwXfx1rKZQfFQ0pdQ4=";
29 };
30
31 build-system = [ setuptools ];
32
33 buildInputs = [ pytest ];
34
35 dependencies = [ attrs ];
36
37 nativeCheckInputs = [
38 py
39 pytest-mypy
40 pytest-pycodestyle
41 pytest-pylint
42 pytestCheckHook
43 requests
44 types-requests
45 types-setuptools
46 writableTmpDirAsHomeHook
47 ];
48
49 pythonImportsCheck = [ "pytest_docker" ];
50
51 disabledTests = [
52 # Tests wants to run docker
53 "test_containers_and_volumes_get_cleaned_up"
54 "test_main_fixtures_work"
55 ];
56
57 meta = {
58 description = "Docker-based integration tests";
59 homepage = "https://github.com/avast/pytest-docker";
60 changelog = "https://github.com/avast/pytest-docker/blob/${src.tag}/CHANGELOG.md";
61 license = lib.licenses.mit;
62 maintainers = with lib.maintainers; [ fab ];
63 };
64}