3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #140447 from fabaff/bump-asyncwhois

This commit is contained in:
Sandro 2021-10-04 11:15:30 +02:00 committed by GitHub
commit 02fe15b98c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 55 additions and 2 deletions

View file

@ -6,23 +6,26 @@
, pytestCheckHook
, pythonOlder
, tldextract
, whodap
}:
buildPythonPackage rec {
pname = "asyncwhois";
version = "0.3.2";
version = "0.4.0";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "pogzyb";
repo = pname;
rev = "v${version}";
sha256 = "0cxmvxc82dxrg18kcc321hfmp877knl76pa6dpfhwphwfs2v02f1";
sha256 = "sha256-yJ+AHUyzAl8lRcKcLfMJ8InhV0LVUK+Neb5ngQOwFTM=";
};
propagatedBuildInputs = [
aiodns
tldextract
whodap
];
checkInputs = [

View file

@ -0,0 +1,48 @@
{ lib
, asynctest
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
, async_generator
, httpx
}:
buildPythonPackage rec {
pname = "whodap";
version = "0.1.2";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "pogzyb";
repo = pname;
rev = "v${version}";
sha256 = "1map5m9i1hi4wb9mpp7hq89n8x9bgsi7gclqfixgqhpi5v5gybqc";
};
propagatedBuildInputs = [
httpx
] ++ lib.optionals (pythonOlder "3.7") [
async_generator
];
checkInputs = [
asynctest
pytestCheckHook
];
disabledTestPaths = [
# Requires network access
"tests/test_client.py"
];
pythonImportsCheck = [ "whodap" ];
meta = with lib; {
description = "Python RDAP utility for querying and parsing information about domain names";
homepage = "https://github.com/pogzyb/whodap";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}

View file

@ -9648,6 +9648,8 @@ in {
whitenoise = callPackage ../development/python-modules/whitenoise { };
whodap = callPackage ../development/python-modules/whodap { };
whois = callPackage ../development/python-modules/whois { };
whoosh = callPackage ../development/python-modules/whoosh { };