Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / whois-api / default.nix
blob775fb63356970a8b6f3fd019a82f69cb1151d2d1
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , setuptools
5 , requests
6 , pytestCheckHook
7 }:
9 buildPythonPackage rec {
10   pname = "whois-api";
11   version = "1.2.0";
12   pyproject = true;
14   src = fetchFromGitHub {
15     owner = "whois-api-llc";
16     repo = "whois-api-py";
17     rev = "v${version}";
18     hash = "sha256-SeBeJ6k2R53LxHov+8t70geqUosk/yBJQCi6GaVteMM=";
19   };
21   nativeBuildInputs = [
22     setuptools
23   ];
25   propagatedBuildInputs = [
26     requests
27   ];
29   # all tests touch internet
30   doCheck = false;
32   pythonImportsCheck = [ "whoisapi" ];
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   };