2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
coverage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pytest,
|
|
|
|
pythonOlder,
|
|
|
|
setuptools,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytest-testmon";
|
2024-02-29 20:09:43 +00:00
|
|
|
version = "2.1.1";
|
2023-02-02 18:25:31 +00:00
|
|
|
format = "pyproject";
|
2022-09-09 14:08:57 +00:00
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tarpas";
|
|
|
|
repo = pname;
|
|
|
|
rev = "refs/tags/v${version}";
|
2024-02-29 20:09:43 +00:00
|
|
|
hash = "sha256-zbMX9r9lftdm9hzXMZRZZ/GEDViGk9QiYYUhO9ZcEAc=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ setuptools ];
|
2023-02-02 18:25:31 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
buildInputs = [ pytest ];
|
2022-09-09 14:08:57 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
propagatedBuildInputs = [ coverage ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
# The project does not include tests since version 1.3.0
|
|
|
|
doCheck = false;
|
2022-09-09 14:08:57 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "testmon" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2022-09-09 14:08:57 +00:00
|
|
|
description = "Pytest plug-in which automatically selects and re-executes only tests affected by recent changes";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/tarpas/pytest-testmon/";
|
2023-02-02 18:25:31 +00:00
|
|
|
changelog = "https://github.com/tarpas/pytest-testmon/releases/tag/v${version}";
|
2023-11-16 04:20:00 +00:00
|
|
|
license = licenses.mit;
|
2022-09-09 14:08:57 +00:00
|
|
|
maintainers = with maintainers; [ dmvianna ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|