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