forked from mirrors/nixpkgs
Merge pull request #140447 from fabaff/bump-asyncwhois
This commit is contained in:
commit
02fe15b98c
|
@ -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 = [
|
||||
|
|
48
pkgs/development/python-modules/whodap/default.nix
Normal file
48
pkgs/development/python-modules/whodap/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
|
@ -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 { };
|
||||
|
|
Loading…
Reference in a new issue