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 86c2b26475a1..4a3577020af7 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -7916,6 +7916,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 { };