Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 pytest, 7 pytestCheckHook, 8 pythonOlder, 9}: 10 11buildPythonPackage rec { 12 pname = "pytest-reverse"; 13 version = "1.7.0"; 14 format = "pyproject"; 15 16 disabled = pythonOlder "3.7"; 17 18 src = fetchFromGitHub { 19 owner = "adamchainz"; 20 repo = "pytest-reverse"; 21 rev = version; 22 hash = "sha256-r0aSbUgArHQkpaXUvMT6oyOxEliQRtSGuDt4IILzhH4="; 23 }; 24 25 nativeBuildInputs = [ setuptools ]; 26 27 buildInputs = [ pytest ]; 28 29 nativeCheckInputs = [ pytestCheckHook ]; 30 31 pythonImportsCheck = [ "pytest_reverse" ]; 32 33 meta = with lib; { 34 description = "Pytest plugin to reverse test order"; 35 homepage = "https://github.com/adamchainz/pytest-reverse"; 36 changelog = "https://github.com/adamchainz/pytest-reverse/blob/${version}/CHANGELOG.rst"; 37 license = licenses.mit; 38 maintainers = with maintainers; [ mbalatsko ]; 39 }; 40}