emacsPackages.lsp-bridge: 0-unstable-2025-01-11 -> 0-unstable-2025-01-22 (#376531)
[NixPkgs.git] / pkgs / development / python-modules / whois / default.nix
blobca6f8daf3112cac75fd107dc0a2d5a0194c0064b
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   hatchling,
6   inetutils,
7   pythonOlder,
8 }:
10 buildPythonPackage rec {
11   pname = "whois";
12   version = "0.99.3";
13   pyproject = true;
15   disabled = pythonOlder "3.7";
17   src = fetchFromGitHub {
18     owner = "DannyCork";
19     repo = "python-whois";
20     tag = version;
21     hash = "sha256-uKAqpxb72fo0DiaChuJvDizq0z/oFSDHWJuK4vuYIzo=";
22   };
24   nativeBuildInputs = [ hatchling ];
26   propagatedBuildInputs = [
27     # whois is needed
28     inetutils
29   ];
31   # Tests require network access
32   doCheck = false;
34   pythonImportsCheck = [ "whois" ];
36   meta = with lib; {
37     description = "Python module/library for retrieving WHOIS information";
38     homepage = "https://github.com/DannyCork/python-whois/";
39     changelog = "https://github.com/DannyCork/python-whois/releases/tag/${version}";
40     license = with licenses; [ mit ];
41     maintainers = with maintainers; [ fab ];
42   };