1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 requests,
7 pytestCheckHook,
8}:
9
10buildPythonPackage rec {
11 pname = "whois-api";
12 version = "1.2.0";
13 pyproject = true;
14
15 src = fetchFromGitHub {
16 owner = "whois-api-llc";
17 repo = "whois-api-py";
18 rev = "v${version}";
19 hash = "sha256-SeBeJ6k2R53LxHov+8t70geqUosk/yBJQCi6GaVteMM=";
20 };
21
22 nativeBuildInputs = [ setuptools ];
23
24 propagatedBuildInputs = [ requests ];
25
26 # all tests touch internet
27 doCheck = false;
28
29 pythonImportsCheck = [ "whoisapi" ];
30
31 meta = with lib; {
32 description = "Whois API client library for Python";
33 homepage = "https://github.com/whois-api-llc/whois-api-py";
34 changelog = "https://github.com/whois-api-llc/whois-api-py/blob/${src.rev}/CHANGELOG.rst";
35 license = licenses.mit;
36 maintainers = with maintainers; [ mbalatsko ];
37 };
38}