From 7be007372e86273413dd08775485261de954c74d Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 4 Jan 2021 12:17:32 +0100 Subject: [PATCH] python3Packages.whois: init at 0.9.7 --- .../python-modules/whois/default.nix | 32 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 34 insertions(+) create mode 100644 pkgs/development/python-modules/whois/default.nix diff --git a/pkgs/development/python-modules/whois/default.nix b/pkgs/development/python-modules/whois/default.nix new file mode 100644 index 000000000000..759bc0cd8ee9 --- /dev/null +++ b/pkgs/development/python-modules/whois/default.nix @@ -0,0 +1,32 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, pytestCheckHook +, inetutils +}: + +buildPythonPackage rec { + pname = "whois"; + version = "0.9.7"; + + src = fetchFromGitHub { + owner = "DannyCork"; + repo = "python-whois"; + rev = version; + sha256 = "1rbc4xif4dn455vc8dhxdvwszrb0nik5q9fy12db6mxfx6zikb7z"; + }; + + # whois is needed + propagatedBuildInputs = [ inetutils ]; + + # tests require network access + doCheck = false; + pythonImportsCheck = [ "whois" ]; + + meta = with lib; { + description = "Python module/library for retrieving WHOIS information"; + homepage = "https://github.com/DannyCork/python-whois/"; + license = with licenses; [ mit ]; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index cfb9ac52ccb1..110d8af5e0e5 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -7898,6 +7898,8 @@ in { whitenoise = callPackage ../development/python-modules/whitenoise { }; + whois = callPackage ../development/python-modules/whois { }; + whoosh = callPackage ../development/python-modules/whoosh { }; widgetsnbextension = callPackage ../development/python-modules/widgetsnbextension { };