nose2pytest: init at 1.0.12

Emily cb973365 c71dc054

+66
+3
pkgs/by-name/no/nose2pytest/package.nix
··· 1 + { python3Packages }: 2 + 3 + python3Packages.toPythonApplication python3Packages.nose2pytest
+61
pkgs/development/python-modules/nose2pytest/default.nix
··· 1 + { 2 + lib, 3 + buildPythonPackage, 4 + fetchFromGitHub, 5 + fetchpatch2, 6 + setuptools, 7 + fissix, 8 + pytestCheckHook, 9 + nose, 10 + }: 11 + 12 + let 13 + version = "1.0.12"; 14 + in 15 + 16 + buildPythonPackage { 17 + pname = "nose2pytest"; 18 + inherit version; 19 + pyproject = true; 20 + 21 + src = fetchFromGitHub { 22 + owner = "pytest-dev"; 23 + repo = "nose2pytest"; 24 + rev = "v${version}"; 25 + hash = "sha256-BYyj2ZOZvWBpmzQACpmxAzCdQhlZlDYt+HLMdft+wYY="; 26 + }; 27 + 28 + patches = [ 29 + # Drop Python 3.6 and 3.7 support 30 + # 31 + # Relaxes the runtime check for Python < 3.12. 32 + (fetchpatch2 { 33 + url = "https://github.com/pytest-dev/nose2pytest/commit/75ff506aaf11b5e20672441730657ee7540387e1.patch?full_index=1"; 34 + hash = "sha256-BpazrsB4b1oMBx9OemdVxhj/Jqbc8RKv2GC6gqkdGK8="; 35 + }) 36 + ]; 37 + 38 + build-system = [ setuptools ]; 39 + 40 + dependencies = [ fissix ]; 41 + 42 + nativeCheckInputs = [ 43 + pytestCheckHook 44 + nose 45 + ]; 46 + 47 + preCheck = '' 48 + export HOME=$(mktemp -d) 49 + ''; 50 + 51 + pythonImportsCheck = [ "nose2pytest.assert_tools" ]; 52 + 53 + meta = { 54 + description = "Scripts to convert Python Nose tests to PyTest"; 55 + homepage = "https://github.com/pytest-dev/nose2pytest"; 56 + sourceProvenance = [ lib.sourceTypes.fromSource ]; 57 + license = lib.licenses.bsd3; 58 + maintainers = [ lib.maintainers.emily ]; 59 + mainProgram = "nose2pytest"; 60 + }; 61 + }
+2
pkgs/top-level/python-packages.nix
··· 9120 9120 9121 9121 nose2 = callPackage ../development/python-modules/nose2 { }; 9122 9122 9123 + nose2pytest = callPackage ../development/python-modules/nose2pytest { }; 9124 + 9123 9125 nose3 = callPackage ../development/python-modules/nose3 { }; 9124 9126 9125 9127 nose-timer = callPackage ../development/python-modules/nose-timer { };