From f9ffd72d7ee1365cdf6d7fdc5463cb8f90484c55 Mon Sep 17 00:00:00 2001 From: Johann Dahm Date: Tue, 13 Jul 2021 22:38:24 -0700 Subject: python3Packages.devtools: init at 0.6.1 --- .../python-modules/devtools/default.nix | 27 ++++++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 29 insertions(+) create mode 100644 pkgs/development/python-modules/devtools/default.nix diff --git a/pkgs/development/python-modules/devtools/default.nix b/pkgs/development/python-modules/devtools/default.nix new file mode 100644 index 000000000000..29a5234608bd --- /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; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 85b0302ea00f..15e2866effaf 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -1909,6 +1909,8 @@ in { devpi-common = callPackage ../development/python-modules/devpi-common { }; + devtools = callPackage ../development/python-modules/devtools { }; + diagrams = callPackage ../development/python-modules/diagrams { }; diceware = callPackage ../development/python-modules/diceware { }; -- cgit 1.4.1 From f3cb27405c3add4cc0d01ac191fe1041d31af96e Mon Sep 17 00:00:00 2001 From: Johann Dahm Date: Tue, 13 Jul 2021 22:39:53 -0700 Subject: Add @jdahm as maintainer of python3Packages.devtools --- maintainers/maintainer-list.nix | 6 ++++++ pkgs/development/python-modules/devtools/default.nix | 1 + 2 files changed, 7 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index ef102e3a7a3d..1df8fb0293a4 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -4793,6 +4793,12 @@ githubId = 1383440; name = "Jason Gilliland"; }; + jdahm = { + email = "johann.dahm@gmail.com"; + github = "jdahm"; + githubId = 68032; + name = "Johann Dahm"; + }; jdanek = { email = "jdanek@redhat.com"; github = "jdanekrh"; diff --git a/pkgs/development/python-modules/devtools/default.nix b/pkgs/development/python-modules/devtools/default.nix index 29a5234608bd..32050acfdf27 100644 --- a/pkgs/development/python-modules/devtools/default.nix +++ b/pkgs/development/python-modules/devtools/default.nix @@ -23,5 +23,6 @@ buildPythonPackage rec { description = "Python's missing debug print command and other development tools"; homepage = "https://python-devtools.helpmanual.io/"; license = licenses.mit; + maintainers = with maintainers; [ jdahm ]; }; } -- cgit 1.4.1