python39Packages.portend: switch to pytestCheckHook, remove linter
This commit is contained in:
parent
9dbdba0618
commit
f4e164ee02
1 changed files with 2 additions and 10 deletions
|
@ -1,5 +1,5 @@
|
|||
{ lib, buildPythonPackage, fetchPypi
|
||||
, pytest, setuptools-scm, tempora, pytest-black, pytest-cov }:
|
||||
, pytestCheckHook, setuptools-scm, tempora }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "portend";
|
||||
|
@ -10,19 +10,11 @@ buildPythonPackage rec {
|
|||
sha256 = "239e3116045ea823f6df87d6168107ad75ccc0590e37242af0cc1e98c5d224e4";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace pytest.ini --replace "--flake8" ""
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ setuptools-scm ];
|
||||
|
||||
propagatedBuildInputs = [ tempora ];
|
||||
|
||||
checkInputs = [ pytest pytest-black pytest-cov ];
|
||||
|
||||
checkPhase = ''
|
||||
py.test --deselect=test_portend.py::TestChecker::test_check_port_listening
|
||||
'';
|
||||
checkInputs = [ pytestCheckHook ];
|
||||
|
||||
# Some of the tests use localhost networking.
|
||||
__darwinAllowLocalNetworking = true;
|
||||
|
|
Loading…
Reference in a new issue