nixpkgs-suyu/pkgs/development/python-modules/sseclient-py/default.nix
2020-10-03 14:26:35 +02:00

25 lines
638 B
Nix

{ buildPythonPackage, fetchFromGitHub, lib, python }:
buildPythonPackage rec {
pname = "sseclient-py";
version = "1.7";
src = fetchFromGitHub {
owner = "mpetazzoni";
repo = "sseclient";
rev = "sseclient-py-${version}";
sha256 = "0iar4w8gryhjzqwy5k95q9gsv6xpmnwxkpz33418nw8hxlp86wfl";
};
# 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 ];
};
}