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