3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #236542 from fabaff/sseclient-modernize

python311Packages.sseclient: remove pytest-runner
This commit is contained in:
Fabian Affolter 2023-06-08 08:10:15 +02:00 committed by GitHub
commit dfb633cf48
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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";