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