2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, coverage
|
2023-02-02 18:25:31 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, poetry-core
|
2020-04-24 23:36:52 +00:00
|
|
|
, pytest
|
2022-09-09 14:08:57 +00:00
|
|
|
, pythonOlder
|
2023-02-02 18:25:31 +00:00
|
|
|
, setuptools
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytest-testmon";
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "2.0.12";
|
2023-02-02 18:25:31 +00:00
|
|
|
format = "pyproject";
|
2022-09-09 14:08:57 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
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}";
|
2023-07-15 17:15:38 +00:00
|
|
|
hash = "sha256-hv5sgWSbMk13h+nFTcy4aEMJvTyaLbXFhg6ZOKYEvVQ=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
2022-09-09 14:08:57 +00:00
|
|
|
buildInputs = [
|
|
|
|
pytest
|
|
|
|
];
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
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}";
|
|
|
|
license = licenses.agpl3Only;
|
2022-09-09 14:08:57 +00:00
|
|
|
maintainers = with maintainers; [ dmvianna ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|