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