mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-06 02:06:46 +01:00
36 lines
830 B
Nix
36 lines
830 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, coverage
|
|
, pytest
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pytest-testmon";
|
|
version = "1.0.1";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "b823b03faf5778d1e15fb9f52e104df4da9c1021daeb313b339fccbbfb8dbd5f";
|
|
};
|
|
|
|
propagatedBuildInputs = [ coverage ];
|
|
|
|
checkInputs = [ pytest ];
|
|
|
|
# avoid tests which try to import unittest_mixins
|
|
# unittest_mixins doesn't seem to be very active
|
|
checkPhase = ''
|
|
cd test
|
|
pytest test_{core,process_code,pytest_assumptions}.py
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/tarpas/pytest-testmon/";
|
|
description = "This is a py.test plug-in which automatically selects and re-executes only tests affected by recent changes";
|
|
license = licenses.mit;
|
|
maintainers = [ maintainers.dmvianna ];
|
|
};
|
|
}
|
|
|