mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-24 10:56:56 +00:00
7f6d634d04
``` Processing ./pytest_testmon-1.0.2-py2-none-any.whl ERROR: Package 'pytest-testmon' requires a different Python: 2.7.18 not in '>=3.6' ```
38 lines
876 B
Nix
38 lines
876 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pythonOlder
|
|
, coverage
|
|
, pytest
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pytest-testmon";
|
|
version = "1.0.2";
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "fdb016d953036051d1ef0e36569b7168cefa4914014789a65a4ffefc87f85ac5";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|
|
|