blob: a4b20a75d15bb5450472506a555ad9ddcbe2b9a3 (
plain) (
blame)
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
42
43
44
45
46
47
48
49
50
51
52
53
|
{
lib,
buildPythonPackage,
pythonOlder,
fetchFromGitHub,
poetry-core,
deprecation,
docker,
wrapt,
typing-extensions,
}:
buildPythonPackage rec {
pname = "testcontainers";
version = "4.7.1";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "testcontainers";
repo = "testcontainers-python";
rev = "refs/tags/testcontainers-v${version}";
hash = "sha256-li9okYMPW6PM03cFQRfHKzr48eOguNXmmHnSCBgDqYo=";
};
postPatch = ''
echo "${version}" > VERSION
'';
build-system = [ poetry-core ];
buildInputs = [
deprecation
docker
wrapt
];
dependencies = [ typing-extensions ];
# Tests require various container and database services running
doCheck = false;
pythonImportsCheck = [ "testcontainers" ];
meta = {
description = "Allows using docker containers for functional and integration testing";
homepage = "https://github.com/testcontainers/testcontainers-python";
changelog = "https://github.com/testcontainers/testcontainers-python/releases/tag/testcontainers-v${version}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ onny ];
};
}
|