python311Packages.sseclient-py: add pythonImportsCheck
- use hook for tests
This commit is contained in:
parent
29b2fedaa6
commit
4bf9efa9b7
|
@ -1,8 +1,8 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, python
|
||||
, pythonOlder
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
|
@ -16,13 +16,20 @@ buildPythonPackage rec {
|
|||
owner = "mpetazzoni";
|
||||
repo = "sseclient";
|
||||
rev = "sseclient-py-${version}";
|
||||
sha256 = "sha256-rNiJqR7/e+Rhi6kVBY8gZJZczqSUsyszotXkb4OKfWk=";
|
||||
hash = "sha256-rNiJqR7/e+Rhi6kVBY8gZJZczqSUsyszotXkb4OKfWk=";
|
||||
};
|
||||
|
||||
# based on tox.ini
|
||||
checkPhase = ''
|
||||
${python.interpreter} tests/unittests.py
|
||||
'';
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"sseclient"
|
||||
];
|
||||
|
||||
pytestFlagsArray = [
|
||||
"tests/unittests.py"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Pure-Python Server Side Events (SSE) client";
|
||||
|
|
Loading…
Reference in a new issue