linux_xanmod: 5.11.14 -> 5.11.15
[NixPkgs.git] / pkgs / development / python-modules / sseclient / default.nix
blob6bbeb23ed1f5758832822d85d8d992294005df7a
1 { lib, buildPythonPackage, fetchPypi, isPy27
2 , requests, six
3 , backports_unittest-mock, pytestCheckHook, pytestrunner }:
5 buildPythonPackage rec {
6   pname = "sseclient";
7   version = "0.0.27";
9   src = fetchPypi {
10     inherit pname version;
11     sha256 = "b2fe534dcb33b1d3faad13d60c5a7c718e28f85987f2a034ecf5ec279918c11c";
12   };
14   propagatedBuildInputs = [ requests six ];
16   # some tests use python3 strings
17   doCheck = !isPy27;
18   checkInputs = [ backports_unittest-mock pytestCheckHook pytestrunner ];
20   # tries to open connection to wikipedia
21   disabledTests = [ "event_stream" ];
23   meta = with lib; {
24     description = "Client library for reading Server Sent Event streams";
25     homepage = "https://github.com/btubbs/sseclient";
26     license = licenses.mit;
27     maintainers = with maintainers; [ peterhoeg ];
28   };