mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-27 08:04:14 +00:00
42 lines
883 B
Nix
42 lines
883 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, inetutils
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "whois";
|
|
version = "0.9.27";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "DannyCork";
|
|
repo = "python-whois";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-hs4iCv2OqwLhTj2H4oijRYIyqXrHmewqgnMtU+3Uup0=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|