mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 03:17:13 +00:00
83d35749ff
This at least makes the package build again... `nix-build -A python3Packages.pytest-testmon` failed before because of https://github.com/tarpas/pytest-testmon/issues/158
38 lines
863 B
Nix
38 lines
863 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pythonOlder
|
|
, coverage
|
|
, pytest
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pytest-testmon";
|
|
version = "1.1.0";
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-+IpT0o+Jg2UJcy6d7mEdZsYfW4IXIBu4IqBFbywyPRk=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|
|
|