Skip to content

Commit 0280298

Browse files
authored
Merge pull request #259606 from mbalatsko/init-whois-api
python3Packages.whois-api: init at 1.2.0
2 parents 8aa3951 + 1349fb7 commit 0280298

2 files changed

Lines changed: 43 additions & 0 deletions

File tree

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{ lib
2+
, buildPythonPackage
3+
, fetchFromGitHub
4+
, setuptools
5+
, requests
6+
, pytestCheckHook
7+
}:
8+
9+
buildPythonPackage 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+
}

pkgs/top-level/python-packages.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15527,6 +15527,8 @@ self: super: with self; {
1552715527

1552815528
whois = callPackage ../development/python-modules/whois { };
1552915529

15530+
whois-api = callPackage ../development/python-modules/whois-api { };
15531+
1553015532
whoosh = callPackage ../development/python-modules/whoosh { };
1553115533

1553215534
widgetsnbextension = callPackage ../development/python-modules/widgetsnbextension { };

0 commit comments

Comments
 (0)