{ lib , buildPythonPackage , pythonOlder , fetchFromGitHub , poetry-core , deprecation , docker , wrapt , typing-extensions }: buildPythonPackage rec { pname = "testcontainers"; version = "4.3.3"; disabled = pythonOlder "3.9"; pyproject = true; src = fetchFromGitHub { owner = "testcontainers"; repo = "testcontainers-python"; rev = "refs/tags/testcontainers-v${version}"; hash = "sha256-qb7mOtL+YJI24DOBgrqxc817k4fD2kTOtUNF2X0qEIc="; }; postPatch = '' echo "${version}" > VERSION ''; nativeBuildInputs = [ poetry-core ]; buildInputs = [ deprecation docker wrapt ]; dependencies = [ typing-extensions ]; # Tests require various container and database services running doCheck = false; pythonImportsCheck = [ "testcontainers" ]; meta = with lib; { description = '' Allows using docker containers for functional and integration testing ''; homepage = "https://github.com/testcontainers/testcontainers-python"; license = licenses.asl20; maintainers = with maintainers; [ onny ]; }; }