Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / whodap / default.nix
blobf6707f9fc3106dbb5bcc48c435144e85f506f533
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , pytest-asyncio
5 , pytestCheckHook
6 , pythonOlder
7 , httpx
8 }:
10 buildPythonPackage rec {
11   pname = "whodap";
12   version = "0.1.12";
13   format = "setuptools";
15   disabled = pythonOlder "3.8";
17   src = fetchFromGitHub {
18     owner = "pogzyb";
19     repo = pname;
20     rev = "refs/tags/v${version}";
21     hash = "sha256-kw7bmkpDNb/PK/Q2tSbG+ju0G+6tdSy3RaNDaNOVYnE=";
22   };
24   propagatedBuildInputs = [
25     httpx
26   ];
28   nativeCheckInputs = [
29     pytest-asyncio
30     pytestCheckHook
31   ];
33   disabledTestPaths = [
34     # Requires network access
35     "tests/test_client.py"
36   ];
38   pythonImportsCheck = [
39     "whodap"
40   ];
42   meta = with lib; {
43     description = "Python RDAP utility for querying and parsing information about domain names";
44     homepage = "https://github.com/pogzyb/whodap";
45     changelog = "https://github.com/pogzyb/whodap/releases/tag/v${version}";
46     license = with licenses; [ mit ];
47     maintainers = with maintainers; [ fab ];
48   };