python312Packages.pytest-virtualenv: 1.7.0 -> 1.7.1-unstable-2022-10-03

TomaSajt 143bc2fa 44f4e956

+34 -12
+34 -12
pkgs/development/python-modules/pytest-virtualenv/default.nix
··· 1 - { lib, buildPythonPackage, fetchPypi 2 - , pytest, pytest-cov, mock, cmdline, pytest-fixture-config, pytest-shutil, virtualenv }: 1 + { 2 + lib, 3 + buildPythonPackage, 4 + cmdline, 5 + importlib-metadata, 6 + mock, 7 + pytestCheckHook, 8 + pytest, 9 + pytest-fixture-config, 10 + pytest-shutil, 11 + setuptools, 12 + virtualenv, 13 + }: 3 14 4 15 buildPythonPackage rec { 5 16 pname = "pytest-virtualenv"; 6 - version = "1.7.0"; 7 - format = "setuptools"; 17 + inherit (pytest-fixture-config) version src; 18 + pyproject = true; 8 19 9 - src = fetchPypi { 10 - inherit pname version; 11 - sha256 = "03w2zz3crblj1p6i8nq17946hbn3zqp9z7cfnifw47hi4a4fww12"; 12 - }; 20 + sourceRoot = "${src.name}/pytest-virtualenv"; 21 + 22 + build-system = [ setuptools ]; 23 + 24 + buildInputs = [ pytest ]; 25 + 26 + dependencies = [ 27 + importlib-metadata 28 + pytest-fixture-config 29 + pytest-shutil 30 + virtualenv 31 + ]; 13 32 14 - nativeCheckInputs = [ pytest pytest-cov mock cmdline ]; 15 - propagatedBuildInputs = [ pytest-fixture-config pytest-shutil virtualenv ]; 16 - checkPhase = "py.test tests/unit "; 33 + nativeCheckInputs = [ 34 + cmdline 35 + mock 36 + pytestCheckHook 37 + ]; 17 38 18 - nativeBuildInputs = [ pytest ]; 39 + # Don't run integration tests 40 + disabledTestPaths = [ "tests/integration/*" ]; 19 41 20 42 meta = with lib; { 21 43 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.";