depot/third_party/nixpkgs/pkgs/development/python-modules/pytest-testmon/default.nix
Default email b5f92a349c Project import generated by Copybara.
GitOrigin-RevId: 7c9cc5a6e5d38010801741ac830a3f8fd667a7a0
2023-10-19 15:55:26 +02:00

51 lines
1 KiB
Nix

{ lib
, buildPythonPackage
, coverage
, fetchFromGitHub
, poetry-core
, pytest
, pythonOlder
, setuptools
}:
buildPythonPackage rec {
pname = "pytest-testmon";
version = "2.0.13";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "tarpas";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-WJ0Br8O7p5Zru4Fr9+adXp5qjR7sZxBZVtBJghecm9E=";
};
nativeBuildInputs = [
setuptools
];
buildInputs = [
pytest
];
propagatedBuildInputs = [
coverage
];
# The project does not include tests since version 1.3.0
doCheck = false;
pythonImportsCheck = [
"testmon"
];
meta = with lib; {
description = "Pytest plug-in which automatically selects and re-executes only tests affected by recent changes";
homepage = "https://github.com/tarpas/pytest-testmon/";
changelog = "https://github.com/tarpas/pytest-testmon/releases/tag/v${version}";
license = licenses.agpl3Only;
maintainers = with maintainers; [ dmvianna ];
};
}