Merge pull request #216104 from dotlambda/pytest-forked-1.6.0

python310Packages.pytest-forked: 1.4.0 -> 1.6.0

authored by

Martin Weinelt and committed by
GitHub
770db258 565e08be

+18 -18
+18 -18
pkgs/development/python-modules/pytest-forked/default.nix
··· 1 1 { lib 2 2 , buildPythonPackage 3 3 , pythonOlder 4 - , fetchPypi 5 - , fetchpatch 4 + , fetchFromGitHub 5 + , setuptools 6 6 , setuptools-scm 7 + , wheel 7 8 , py 8 9 , pytest 9 10 , pytestCheckHook ··· 11 12 12 13 buildPythonPackage rec { 13 14 pname = "pytest-forked"; 14 - version = "1.4.0"; 15 + version = "1.6.0"; 15 16 16 - disabled = pythonOlder "3.6"; 17 + disabled = pythonOlder "3.7"; 17 18 18 - src = fetchPypi { 19 - inherit pname version; 20 - sha256 = "sha256-i2dYfI+Yy7rf3YBFOe1UVbbtA4AiA0hd0vU8FCLXRA4="; 19 + format = "pyproject"; 20 + 21 + src = fetchFromGitHub { 22 + owner = "pytest-dev"; 23 + repo = "pytest-forked"; 24 + rev = "refs/tags/v${version}"; 25 + hash = "sha256-owkGwF5WQ17/CXwTsIYJ2AgktekRB4qhtsDxR0LCI/k="; 21 26 }; 22 27 23 - patches = [ 24 - # pytest 7.2.0 compat, remove after 1.4.0 25 - (fetchpatch { 26 - url = "https://github.com/pytest-dev/pytest-forked/commit/c3c753e96916a4bc5a8a37699e75c6cbbd653fa2.patch"; 27 - hash = "sha256-QPgxBeMQ0eKJyHXYZyBicVbE+JyKPV/Kbjsb8gNJBGA="; 28 - }) 29 - (fetchpatch { 30 - url = "https://github.com/pytest-dev/pytest-forked/commit/de584eda15df6db7912ab6197cfb9ff23024ef23.patch"; 31 - hash = "sha256-VLE32xZRwFK0nEgCWuSoMW/yyFHEURtNFU9Aa9haLhk="; 32 - }) 28 + nativeBuildInputs = [ 29 + setuptools 30 + setuptools-scm 31 + wheel 33 32 ]; 34 33 35 - nativeBuildInputs = [ setuptools-scm ]; 34 + SETUPTOOLS_SCM_PRETEND_VERSION = version; 36 35 37 36 buildInputs = [ 38 37 pytest ··· 50 49 setupHook = ./setup-hook.sh; 51 50 52 51 meta = { 52 + changelog = "https://github.com/pytest-dev/pytest-forked/blob/${src.rev}/CHANGELOG.rst"; 53 53 description = "Run tests in isolated forked subprocesses"; 54 54 homepage = "https://github.com/pytest-dev/pytest-forked"; 55 55 license = lib.licenses.mit;