fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
38 lines
870 B
Nix
38 lines
870 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
hatchling,
|
|
pythonOlder,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "whoisdomain";
|
|
version = "1.20240129.1";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mboot-github";
|
|
repo = "WhoisDomain";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-nRj/WkYjMZuQoYF+QFIHABlek4DxvvEnOTeFYLHYvZc=";
|
|
};
|
|
|
|
nativeBuildInputs = [ hatchling ];
|
|
|
|
pythonImportsCheck = [ "whoisdomain" ];
|
|
|
|
# Tests require network access
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
description = "Module to perform whois lookups";
|
|
mainProgram = "whoisdomain";
|
|
homepage = "https://github.com/mboot-github/WhoisDomain";
|
|
changelog = "https://github.com/mboot-github/WhoisDomain/releases/tag/${version}";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|