forked from mirrors/nixpkgs
python311Packages.sseclient: remove pytest-runner
- disable on unsupported Python releases - add format
This commit is contained in:
parent
7721e0d2c1
commit
50c3a639b6
|
@ -1,24 +1,38 @@
|
|||
{ lib, buildPythonPackage, fetchPypi, isPy27
|
||||
, requests, six
|
||||
, backports_unittest-mock, pytestCheckHook, pytest-runner }:
|
||||
{ lib
|
||||
, backports_unittest-mock
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, requests
|
||||
, six
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "sseclient";
|
||||
version = "0.0.27";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "b2fe534dcb33b1d3faad13d60c5a7c718e28f85987f2a034ecf5ec279918c11c";
|
||||
hash = "sha256-sv5TTcszsdP6rRPWDFp8cY4o+FmH8qA07PXsJ5kYwRw=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ requests six ];
|
||||
propagatedBuildInputs = [
|
||||
requests
|
||||
six
|
||||
];
|
||||
|
||||
# some tests use python3 strings
|
||||
doCheck = !isPy27;
|
||||
nativeCheckInputs = [ backports_unittest-mock pytestCheckHook pytest-runner ];
|
||||
nativeCheckInputs = [
|
||||
backports_unittest-mock
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
# tries to open connection to wikipedia
|
||||
disabledTests = [ "event_stream" ];
|
||||
disabledTests = [
|
||||
"event_stream"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Client library for reading Server Sent Event streams";
|
||||
|
|
Loading…
Reference in a new issue