1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 contexter,
6 eventlet,
7 mock,
8 pytest-xdist,
9 pytestCheckHook,
10 six,
11}:
12
13buildPythonPackage rec {
14 pname = "signalslot";
15 version = "0.2.0";
16 format = "setuptools";
17
18 src = fetchPypi {
19 inherit pname version;
20 hash = "sha256-ZNodibNGfCOa8xd3myN+cRa28rY3/ynNUia1kwjTIOU=";
21 };
22
23 postPatch = ''
24 substituteInPlace setup.cfg \
25 --replace "--pep8 --cov" "" \
26 --replace "--cov-report html" ""
27 '';
28
29 propagatedBuildInputs = [
30 contexter
31 six
32 ];
33
34 pythonRemoveDeps = [
35 "weakrefmethod" # needed until https://github.com/Numergy/signalslot/pull/17
36 ];
37
38 nativeCheckInputs = [
39 eventlet
40 mock
41 pytest-xdist
42 pytestCheckHook
43 ];
44
45 pythonImportsCheck = [ "signalslot" ];
46
47 meta = with lib; {
48 description = "Simple Signal/Slot implementation";
49 homepage = "https://github.com/numergy/signalslot";
50 license = licenses.mit;
51 maintainers = with maintainers; [ myaats ];
52 };
53}