depot/third_party/nixpkgs/pkgs/development/python-modules/sseclient-py/default.nix
Default email 84cb9d505d Project import generated by Copybara.
GitOrigin-RevId: 51bcdc4cdaac48535dabf0ad4642a66774c609ed
2021-09-23 17:35:13 +02:00

25 lines
640 B
Nix

{ buildPythonPackage, fetchFromGitHub, lib, python }:
buildPythonPackage rec {
pname = "sseclient-py";
version = "1.7.2";
src = fetchFromGitHub {
owner = "mpetazzoni";
repo = "sseclient";
rev = "sseclient-py-${version}";
sha256 = "096spyv50jir81xiwkg9l88ycp1897d3443r6gi1by8nkp4chvix";
};
# based on tox.ini
checkPhase = ''
${python.interpreter} tests/unittests.py
'';
meta = with lib; {
description = "Pure-Python Server Side Events (SSE) client";
homepage = "https://github.com/mpetazzoni/sseclient";
license = licenses.asl20;
maintainers = with maintainers; [ jamiemagee ];
};
}