Files
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

51 lines
1018 B
Nix
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{
lib,
buildPythonPackage,
cmdline,
importlib-metadata,
mock,
pytestCheckHook,
pytest,
pytest-fixture-config,
pytest-shutil,
setuptools,
virtualenv,
}:
buildPythonPackage {
pname = "pytest-virtualenv";
inherit (pytest-fixture-config) version src patches;
pyproject = true;
postPatch = ''
cd pytest-virtualenv
'';
build-system = [ setuptools ];
buildInputs = [ pytest ];
dependencies = [
importlib-metadata
pytest-fixture-config
pytest-shutil
virtualenv
];
nativeCheckInputs = [
cmdline
mock
pytestCheckHook
];
# Don't run integration tests
disabledTestPaths = [ "tests/integration/*" ];
meta = {
description = "Create a Python virtual environment in your test that cleans up on teardown. The fixture has utility methods to install packages and list whats installed";
homepage = "https://github.com/manahl/pytest-plugins";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ ryansydnor ];
};
}