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