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