2022-07-18 16:21:45 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, buildPythonPackage
|
|
|
|
, deprecation
|
|
|
|
, docker
|
2022-08-12 12:06:08 +00:00
|
|
|
, wrapt }:
|
2022-07-18 16:21:45 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "testcontainers";
|
|
|
|
version = "3.5.0";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "testcontainers";
|
|
|
|
repo = "testcontainers-python";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "sha256-uB3MbRVQzbUdZRxkGl635O+K17bkHIGY2JbU8R23Kt0=";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
deprecation
|
|
|
|
docker
|
|
|
|
wrapt
|
|
|
|
];
|
|
|
|
|
|
|
|
# Tests require various container and database services running
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"testcontainers"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2022-08-12 12:06:08 +00:00
|
|
|
description = ''
|
|
|
|
Allows using docker containers for functional and integration testing
|
|
|
|
'';
|
2022-07-18 16:21:45 +00:00
|
|
|
homepage = "https://github.com/testcontainers/testcontainers-python";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ onny ];
|
|
|
|
};
|
|
|
|
}
|