1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pytestCheckHook, 6 pythonOlder, 7 setuptools, 8 setuptools-scm, 9}: 10 11buildPythonPackage rec { 12 pname = "pytest-plus"; 13 version = "0.8.1"; 14 pyproject = true; 15 16 disabled = pythonOlder "3.10"; 17 18 src = fetchFromGitHub { 19 owner = "pytest-dev"; 20 repo = "pytest-plus"; 21 tag = "v${version}"; 22 hash = "sha256-XlEtekOASIjZretTbQAf0eyQN6qZ9c6zI1ESss/hxfI="; 23 }; 24 25 build-system = [ 26 setuptools 27 setuptools-scm 28 ]; 29 30 nativeCheckInputs = [ pytestCheckHook ]; 31 32 enabledTestPaths = [ "test/" ]; 33 34 pythonImportsCheck = [ "pytest_plus" ]; 35 36 meta = with lib; { 37 description = "pytest-plus adds new features to pytest"; 38 homepage = "https://github.com/pytest-dev/pytest-plus"; 39 changelog = "https://github.com/pytest-dev/pytest-plus/releases/tag/${src.tag}"; 40 license = licenses.mit; 41 maintainers = with maintainers; [ robsliwi ]; 42 }; 43}