From 0def56c8ee02ab3f93e073b950c9438211f2432c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=BCrkan=20G=C3=BCr?= Date: Fri, 26 Apr 2019 16:50:39 +0200 Subject: [PATCH] pythonPackages.pysnooper: init at 0.3.0 --- .../python-modules/pysnooper/default.nix | 33 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 35 insertions(+) create mode 100644 pkgs/development/python-modules/pysnooper/default.nix diff --git a/pkgs/development/python-modules/pysnooper/default.nix b/pkgs/development/python-modules/pysnooper/default.nix new file mode 100644 index 000000000000..bb41a4d18556 --- /dev/null +++ b/pkgs/development/python-modules/pysnooper/default.nix @@ -0,0 +1,33 @@ +{ lib +, buildPythonPackage +, fetchPypi +, python-toolbox +, pytest +, isPy27 +}: + +buildPythonPackage rec { + version = "0.3.0"; + pname = "pysnooper"; + + src = fetchPypi { + inherit version; + pname = "PySnooper"; + sha256 = "14vcxrzfmfhsmdck1cb56a6lbfga15qfhlkap9mh47fgspcq8xkx"; + }; + + # test dependency python-toolbox fails with py27 + doCheck = !isPy27; + + checkInputs = [ + python-toolbox + pytest + ]; + + meta = with lib; { + description = "A poor man's debugger for Python"; + homepage = https://github.com/cool-RR/PySnooper; + license = licenses.mit; + maintainers = with maintainers; [ seqizz ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 601c4d114bdb..fb015120ac77 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -6643,6 +6643,8 @@ in { python-toolbox = callPackage ../development/python-modules/python-toolbox { }; + pysnooper = callPackage ../development/python-modules/pysnooper { }; + sseclient = callPackage ../development/python-modules/sseclient { }; warrant = callPackage ../development/python-modules/warrant { };