1{ lib
2, fetchFromGitHub
3, buildPythonPackage
4, deprecation
5, docker
6, wrapt }:
7
8buildPythonPackage rec {
9 pname = "testcontainers";
10 version = "3.7.0";
11
12 src = fetchFromGitHub {
13 owner = "testcontainers";
14 repo = "testcontainers-python";
15 rev = "v${version}";
16 sha256 = "sha256-t6W5A877bSPcbKVzCLEhjPzOPwF8ZTGjlvnwt1CwWCE=";
17 };
18
19 buildInputs = [
20 deprecation
21 docker
22 wrapt
23 ];
24
25 # Tests require various container and database services running
26 doCheck = false;
27
28 pythonImportsCheck = [
29 "testcontainers"
30 ];
31
32 meta = with lib; {
33 description = ''
34 Allows using docker containers for functional and integration testing
35 '';
36 homepage = "https://github.com/testcontainers/testcontainers-python";
37 license = licenses.asl20;
38 maintainers = with maintainers; [ onny ];
39 };
40}