depot/third_party/nixpkgs/pkgs/development/python-modules/whoisdomain/default.nix
Default email c7cb07f092 Project import generated by Copybara.
GitOrigin-RevId: 1536926ef5621b09bba54035ae2bb6d806d72ac8
2024-02-29 21:09:43 +01:00

40 lines
842 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";
homepage = "https://github.com/mboot-github/WhoisDomain";
changelog = "https://github.com/mboot-github/WhoisDomain/releases/tag/${version}";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}