1{ lib, buildPythonPackage, fetchFromGitHub, isPy27, pytest }:
2
3buildPythonPackage rec {
4 pname = "pypubsub";
5 version = "4.0.3";
6 disabled = isPy27;
7
8 src = fetchFromGitHub {
9 owner = "schollii";
10 repo = "pypubsub";
11 rev = "v4.0.3";
12 sha256 = "02j74w28wzmdvxkk8i561ywjgizjifq3hgcl080yj0rvkd3wivlb";
13 };
14
15 checkInputs = [ pytest ];
16
17 checkPhase = ''
18 cd tests/suite
19 py.test
20 '';
21
22 meta = with lib; {
23 homepage = "https://github.com/schollii/pypubsub";
24 description = "Python 3 publish-subcribe library";
25 longDescription = ''
26 Provides a publish-subscribe API to facilitate event-based or
27 message-based architecture in a single-process application. It is pure
28 Python and works on Python 3.3+. It is centered on the notion of a topic;
29 senders publish messages of a given topic, and listeners subscribe to
30 messages of a given topic, all inside the same process. The package also
31 supports a variety of advanced features that facilitate debugging and
32 maintaining topics and messages in larger desktop- or server-based
33 applications.
34 '';
35 license = licenses.bsd2;
36 maintainers = with maintainers; [ tfmoraes ];
37 };
38}