python310Packages.testcontainers: init at 3.5.0 (#181584)

* python310Packages.testcontainers: init at 3.5.0

* Apply suggestions from code review

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
This commit is contained in:
Jonas Heinrich 2022-07-17 20:59:30 +02:00 committed by GitHub
parent 34bfa9403e
commit e62b0b3856
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 41 additions and 0 deletions

View file

@ -0,0 +1,39 @@
{ lib
, fetchFromGitHub
, buildPythonPackage
, deprecation
, docker
, wrapt
}:
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; {
description = "Allows using docker containers for functional and integration testing";
homepage = "https://github.com/testcontainers/testcontainers-python";
license = licenses.asl20;
maintainers = with maintainers; [ onny ];
};
}

View file

@ -10508,6 +10508,8 @@ in {
tesserocr = callPackage ../development/python-modules/tesserocr { };
testcontainers = callPackage ../development/python-modules/testcontainers { };
testfixtures = callPackage ../development/python-modules/testfixtures { };
textfsm = callPackage ../development/python-modules/textfsm { };