2024-05-15 15:35:15 +00:00
|
|
|
|
{
|
|
|
|
|
lib,
|
|
|
|
|
buildPythonPackage,
|
|
|
|
|
cmdline,
|
|
|
|
|
importlib-metadata,
|
|
|
|
|
mock,
|
|
|
|
|
pytestCheckHook,
|
|
|
|
|
pytest,
|
|
|
|
|
pytest-fixture-config,
|
|
|
|
|
pytest-shutil,
|
|
|
|
|
setuptools,
|
|
|
|
|
virtualenv,
|
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
|
pname = "pytest-virtualenv";
|
2024-05-15 15:35:15 +00:00
|
|
|
|
inherit (pytest-fixture-config) version src;
|
|
|
|
|
pyproject = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
|
sourceRoot = "${src.name}/pytest-virtualenv";
|
|
|
|
|
|
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
|
|
|
|
|
|
buildInputs = [ pytest ];
|
|
|
|
|
|
|
|
|
|
dependencies = [
|
|
|
|
|
importlib-metadata
|
|
|
|
|
pytest-fixture-config
|
|
|
|
|
pytest-shutil
|
|
|
|
|
virtualenv
|
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
|
nativeCheckInputs = [
|
|
|
|
|
cmdline
|
|
|
|
|
mock
|
|
|
|
|
pytestCheckHook
|
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
|
# Don't run integration tests
|
|
|
|
|
disabledTestPaths = [ "tests/integration/*" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
|
description = "Create a Python virtual environment in your test that cleans up on teardown. The fixture has utility methods to install packages and list what’s installed";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
homepage = "https://github.com/manahl/pytest-plugins";
|
|
|
|
|
license = licenses.mit;
|
|
|
|
|
maintainers = with maintainers; [ ryansydnor ];
|
|
|
|
|
};
|
|
|
|
|
}
|