1{ lib 2, asynctest 3, buildPythonPackage 4, fetchFromGitHub 5, pytestCheckHook 6, pythonOlder 7, async_generator 8, httpx 9}: 10 11buildPythonPackage rec { 12 pname = "whodap"; 13 version = "0.1.2"; 14 15 disabled = pythonOlder "3.6"; 16 17 src = fetchFromGitHub { 18 owner = "pogzyb"; 19 repo = pname; 20 rev = "v${version}"; 21 sha256 = "1map5m9i1hi4wb9mpp7hq89n8x9bgsi7gclqfixgqhpi5v5gybqc"; 22 }; 23 24 propagatedBuildInputs = [ 25 httpx 26 ] ++ lib.optionals (pythonOlder "3.7") [ 27 async_generator 28 ]; 29 30 checkInputs = [ 31 asynctest 32 pytestCheckHook 33 ]; 34 35 disabledTestPaths = [ 36 # Requires network access 37 "tests/test_client.py" 38 ]; 39 40 pythonImportsCheck = [ "whodap" ]; 41 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 license = with licenses; [ mit ]; 46 maintainers = with maintainers; [ fab ]; 47 }; 48}