depot/third_party/nixpkgs/pkgs/development/python-modules/testcontainers/default.nix
Default email 02cf88bb76 Project import generated by Copybara.
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
2022-08-12 15:06:08 +03:00

40 lines
828 B
Nix

{ 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 ];
};
}