depot/third_party/nixpkgs/pkgs/development/python-modules/pytest-testmon/default.nix

43 lines
819 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, coverage
, fetchPypi
, pytest
, pythonOlder
}:
buildPythonPackage rec {
pname = "pytest-testmon";
version = "1.3.6";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-KcDVOKAuQ5iVKgK3o1Vnc+LUVsI1izTnkOmByiyCJ1E=";
};
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/";
license = licenses.mit;
maintainers = with maintainers; [ dmvianna ];
};
}