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