depot/third_party/nixpkgs/pkgs/development/python-modules/testcontainers/default.nix
Default email 410b979fe2 Project import generated by Copybara.
GitOrigin-RevId: a64e169e396460d6b5763a1de1dd197df8421688
2023-03-24 01:07:29 +01:00

46 lines
908 B
Nix

{ lib
, fetchFromGitHub
, buildPythonPackage
, deprecation
, docker
, wrapt }:
buildPythonPackage rec {
pname = "testcontainers";
version = "3.7.1";
format = "setuptools";
src = fetchFromGitHub {
owner = "testcontainers";
repo = "testcontainers-python";
rev = "v${version}";
hash = "sha256-OHuvUi5oa0fVcfo0FW9XwaUp52MEH4NTM6GqK4ic0oM=";
};
postPatch = ''
echo "${version}" > VERSION
'';
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 ];
};
}