1{ lib 2, buildPythonPackage 3, fetchPypi 4, pytest 5, isPy27 6}: 7 8buildPythonPackage rec { 9 version = "0.4.1"; 10 pname = "pysnooper"; 11 12 src = fetchPypi { 13 inherit version; 14 pname = "PySnooper"; 15 sha256 = "1xngly13x3ylwwcdml2ns8skpxip2myzavp3b9ff2dpqaalf0hdl"; 16 }; 17 18 # test dependency python-toolbox fails with py27 19 doCheck = !isPy27; 20 21 checkInputs = [ 22 pytest 23 ]; 24 25 meta = with lib; { 26 description = "A poor man's debugger for Python"; 27 homepage = "https://github.com/cool-RR/PySnooper"; 28 license = licenses.mit; 29 maintainers = with maintainers; [ seqizz ]; 30 }; 31}