depot/third_party/nixpkgs/pkgs/development/python-modules/sseclient/default.nix
Default email ae91cbe6cc Project import generated by Copybara.
GitOrigin-RevId: 536fe36e23ab0fc8b7f35c24603422eee9fc17a2
2021-02-05 18:12:51 +01:00

29 lines
819 B
Nix

{ lib, buildPythonPackage, fetchPypi, isPy27
, requests, six
, backports_unittest-mock, pytestCheckHook, pytestrunner }:
buildPythonPackage rec {
pname = "sseclient";
version = "0.0.27";
src = fetchPypi {
inherit pname version;
sha256 = "b2fe534dcb33b1d3faad13d60c5a7c718e28f85987f2a034ecf5ec279918c11c";
};
propagatedBuildInputs = [ requests six ];
# some tests use python3 strings
doCheck = !isPy27;
checkInputs = [ backports_unittest-mock pytestCheckHook pytestrunner ];
# tries to open connection to wikipedia
disabledTests = [ "event_stream" ];
meta = with lib; {
description = "Client library for reading Server Sent Event streams";
homepage = "https://github.com/btubbs/sseclient";
license = licenses.mit;
maintainers = with maintainers; [ peterhoeg ];
};
}