python310Packages.smpplib: use pytestCheckHook, remove tox requirement
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
{ buildPythonPackage, fetchPypi, lib, python, six, tox, mock, pytest }:
|
||||
{ buildPythonPackage, fetchPypi, lib, python, six, mock, pytestCheckHook }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "smpplib";
|
||||
@@ -10,11 +10,7 @@ buildPythonPackage rec {
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ six ];
|
||||
checkInputs = [ tox mock pytest ];
|
||||
|
||||
checkPhase = ''
|
||||
pytest
|
||||
'';
|
||||
checkInputs = [ mock pytestCheckHook ];
|
||||
|
||||
postInstall = ''
|
||||
rm -rf $out/${python.sitePackages}/tests
|
||||
|
||||
Reference in New Issue
Block a user