about summary refs log tree commit diff
path: root/pkgs/development/python-modules/devtools
diff options
context:
space:
mode:
authorJohann Dahm <johannd@vulcan.com>2021-07-13 22:38:24 -0700
committerJohann Dahm <johannd@vulcan.com>2021-07-13 22:45:18 -0700
commitf9ffd72d7ee1365cdf6d7fdc5463cb8f90484c55 (patch)
tree89adfadcebb9e949463f613523035e695ccabfb3 /pkgs/development/python-modules/devtools
parent8743b115bbac05b0dd802149594c747bbab1de26 (diff)
python3Packages.devtools: init at 0.6.1
Diffstat (limited to 'pkgs/development/python-modules/devtools')
-rw-r--r--pkgs/development/python-modules/devtools/default.nix27
1 files changed, 27 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/devtools/default.nix b/pkgs/development/python-modules/devtools/default.nix
new file mode 100644
index 0000000000000..29a5234608bdf
--- /dev/null
+++ b/pkgs/development/python-modules/devtools/default.nix
@@ -0,0 +1,27 @@
+{ buildPythonPackage, pythonOlder, fetchFromGitHub, lib, pygments
+, pytestCheckHook, pytest-mock }:
+
+buildPythonPackage rec {
+  pname = "devtools";
+  version = "0.6.1";
+  disabled = pythonOlder "3.6";
+
+  src = fetchFromGitHub {
+    owner = "samuelcolvin";
+    repo = "python-${pname}";
+    rev = "v${version}";
+    sha256 = "0s1d2jwijini7y1a3318yhb98mh1mw4pzlfx2zck3a8nqw984ki3";
+  };
+
+  propagatedBuildInputs = [ pygments ];
+
+  checkInputs = [ pytestCheckHook pytest-mock ];
+
+  pythonImportsCheck = [ "devtools" ];
+
+  meta = with lib; {
+    description = "Python's missing debug print command and other development tools";
+    homepage = "https://python-devtools.helpmanual.io/";
+    license = licenses.mit;
+  };
+}