summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/pytest-docker-tools/default.nix
blob: 69d78aabf139f213c3606fcb40774ebdd44c697d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
{
  lib,
  buildPythonPackage,
  docker,
  fetchFromGitHub,
  pytest,
  pytestCheckHook,
  setuptools,
}:

buildPythonPackage rec {
  pname = "pytest-docker-tools";
  version = "3.1.9";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "Jc2k";
    repo = "pytest-docker-tools";
    tag = "v${version}";
    hash = "sha256-WYfgO7Ch1hCj9cE43jgI+2JEwDOzNvuMtkVV3PdMiBs=";
  };

  build-system = [ setuptools ];

  buildInputs = [ pytest ];

  dependencies = [ docker ];

  # Tests require a Docker setup
  doCheck = false;

  pythonImportsCheck = [ "pytest_docker_tools" ];

  meta = {
    description = "Opionated helpers for creating py.test fixtures for Docker integration and smoke testing environments";
    homepage = "https://github.com/Jc2k/pytest-docker-tools";
    changelog = "https://github.com/Jc2k/pytest-docker-tools/releases/tag/${version}";
    license = lib.licenses.asl20;
    maintainers = with lib.maintainers; [ fab ];
  };
}