depot/third_party/nixpkgs/pkgs/development/python-modules/whois/default.nix
Default email 0d9fc34957 Project import generated by Copybara.
GitOrigin-RevId: 5ed481943351e9fd354aeb557679624224de38d5
2023-01-20 11:41:00 +01:00

41 lines
883 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, inetutils
, pythonOlder
}:
buildPythonPackage rec {
pname = "whois";
version = "0.9.23";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "DannyCork";
repo = "python-whois";
rev = "refs/tags/${version}";
hash = "sha256-HYzCdWX0gz1W73ZPlrdt+kqUPbBRrDnkGJE56nQ3UVc=";
};
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 ];
};
}