evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / development / python-modules / pytest-docker-tools / default.nix
blob59a98ad271526535c5b910f8ca379472eca636df
2   lib,
3   buildPythonPackage,
4   docker,
5   fetchFromGitHub,
6   fetchpatch,
7   poetry-core,
8   pytest,
9   pytestCheckHook,
10   pythonOlder,
13 buildPythonPackage rec {
14   pname = "pytest-docker-tools";
15   version = "3.1.3";
16   pyproject = true;
18   disabled = pythonOlder "3.8";
20   src = fetchFromGitHub {
21     owner = "Jc2k";
22     repo = "pytest-docker-tools";
23     rev = "refs/tags/${version}";
24     hash = "sha256-6F3aSUyDlBBYG1kwOQvey7rujDdK83uJ3Q1dr8Uo1pw=";
25   };
27   patches = [
28     # Switch to poetry-core, https://github.com/Jc2k/pytest-docker-tools/pull/48
29     (fetchpatch {
30       name = "switch-poetry-core.patch";
31       url = "https://github.com/Jc2k/pytest-docker-tools/pull/48/commits/a655e4a32b075e06e89dd907b06bc4ad90703988.patch";
32       hash = "sha256-CwCBld7p+bqBfxV9IyxcCvfxXfnUSzCLF2m0ZduIqkU=";
33     })
34   ];
36   build-system = [ poetry-core ];
38   buildInputs = [ pytest ];
40   dependencies = [ docker ];
42   # Tests require a Docker setup
43   doCheck = false;
45   pythonImportsCheck = [ "pytest_docker_tools" ];
47   meta = with lib; {
48     description = "Opionated helpers for creating py.test fixtures for Docker integration and smoke testing environments";
49     homepage = "https://github.com/Jc2k/pytest-docker-tools";
50     changelog = "https://github.com/Jc2k/pytest-docker-tools/releases/tag/${version}";
51     license = licenses.asl20;
52     maintainers = with maintainers; [ fab ];
53   };