nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 docker,
5 fetchFromGitHub,
6 pytest,
7 pytestCheckHook,
8 setuptools,
9}:
10
11buildPythonPackage rec {
12 pname = "pytest-docker-tools";
13 version = "3.1.9";
14 pyproject = true;
15
16 src = fetchFromGitHub {
17 owner = "Jc2k";
18 repo = "pytest-docker-tools";
19 tag = "v${version}";
20 hash = "sha256-WYfgO7Ch1hCj9cE43jgI+2JEwDOzNvuMtkVV3PdMiBs=";
21 };
22
23 build-system = [ setuptools ];
24
25 buildInputs = [ pytest ];
26
27 dependencies = [ docker ];
28
29 # Tests require a Docker setup
30 doCheck = false;
31
32 pythonImportsCheck = [ "pytest_docker_tools" ];
33
34 meta = {
35 description = "Opionated helpers for creating py.test fixtures for Docker integration and smoke testing environments";
36 homepage = "https://github.com/Jc2k/pytest-docker-tools";
37 changelog = "https://github.com/Jc2k/pytest-docker-tools/releases/tag/${version}";
38 license = lib.licenses.asl20;
39 maintainers = with lib.maintainers; [ fab ];
40 };
41}