1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 requests, 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 = [ setuptools ]; 22 23 propagatedBuildInputs = [ requests ]; 24 25 # all tests touch internet 26 doCheck = false; 27 28 pythonImportsCheck = [ "whoisapi" ]; 29 30 meta = with lib; { 31 description = "Whois API client library for Python"; 32 homepage = "https://github.com/whois-api-llc/whois-api-py"; 33 changelog = "https://github.com/whois-api-llc/whois-api-py/blob/${src.rev}/CHANGELOG.rst"; 34 license = licenses.mit; 35 maintainers = with maintainers; [ mbalatsko ]; 36 }; 37}