Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at r-updates 40 lines 938 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 coverage, 5 fetchFromGitHub, 6 pytest, 7 setuptools, 8}: 9 10buildPythonPackage rec { 11 pname = "pytest-testmon"; 12 version = "2.2.0"; 13 pyproject = true; 14 15 src = fetchFromGitHub { 16 owner = "tarpas"; 17 repo = "pytest-testmon"; 18 tag = "v${version}"; 19 hash = "sha256-BVQ7rEusbW0G1C6cUeHH7fZWndSErcBQfGNdw0/4eTg="; 20 }; 21 22 build-system = [ setuptools ]; 23 24 buildInputs = [ pytest ]; 25 26 dependencies = [ coverage ]; 27 28 # The project does not include tests since version 1.3.0 29 doCheck = false; 30 31 pythonImportsCheck = [ "testmon" ]; 32 33 meta = { 34 description = "Pytest plug-in which automatically selects and re-executes only tests affected by recent changes"; 35 homepage = "https://github.com/tarpas/pytest-testmon/"; 36 changelog = "https://github.com/tarpas/pytest-testmon/releases/tag/${src.tag}"; 37 license = lib.licenses.mit; 38 maintainers = with lib.maintainers; [ dmvianna ]; 39 }; 40}