depot/third_party/nixpkgs/pkgs/development/python-modules/whois/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

46 lines
934 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, hatchling
, inetutils
, pythonOlder
}:
buildPythonPackage rec {
pname = "whois";
version = "0.99.3";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "DannyCork";
repo = "python-whois";
rev = "refs/tags/${version}";
hash = "sha256-uKAqpxb72fo0DiaChuJvDizq0z/oFSDHWJuK4vuYIzo=";
};
nativeBuildInputs = [
hatchling
];
propagatedBuildInputs = [
# whois is needed
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/";
changelog = "https://github.com/DannyCork/python-whois/releases/tag/${version}";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}