Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 coverage, 5 fetchFromGitHub, 6 poetry-core, 7 pytest, 8 pythonOlder, 9 setuptools, 10}: 11 12buildPythonPackage rec { 13 pname = "pytest-testmon"; 14 version = "2.1.1"; 15 format = "pyproject"; 16 17 disabled = pythonOlder "3.8"; 18 19 src = fetchFromGitHub { 20 owner = "tarpas"; 21 repo = pname; 22 rev = "refs/tags/v${version}"; 23 hash = "sha256-zbMX9r9lftdm9hzXMZRZZ/GEDViGk9QiYYUhO9ZcEAc="; 24 }; 25 26 nativeBuildInputs = [ setuptools ]; 27 28 buildInputs = [ pytest ]; 29 30 propagatedBuildInputs = [ coverage ]; 31 32 # The project does not include tests since version 1.3.0 33 doCheck = false; 34 35 pythonImportsCheck = [ "testmon" ]; 36 37 meta = with lib; { 38 description = "Pytest plug-in which automatically selects and re-executes only tests affected by recent changes"; 39 homepage = "https://github.com/tarpas/pytest-testmon/"; 40 changelog = "https://github.com/tarpas/pytest-testmon/releases/tag/v${version}"; 41 license = licenses.mit; 42 maintainers = with maintainers; [ dmvianna ]; 43 }; 44}