mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-22 05:19:00 +02:00
Merge pull request #140447 from fabaff/bump-asyncwhois
This commit is contained in:
commit
02fe15b98c
|
@ -6,23 +6,26 @@
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
, tldextract
|
, tldextract
|
||||||
|
, whodap
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "asyncwhois";
|
pname = "asyncwhois";
|
||||||
version = "0.3.2";
|
version = "0.4.0";
|
||||||
|
|
||||||
disabled = pythonOlder "3.7";
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "pogzyb";
|
owner = "pogzyb";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "0cxmvxc82dxrg18kcc321hfmp877knl76pa6dpfhwphwfs2v02f1";
|
sha256 = "sha256-yJ+AHUyzAl8lRcKcLfMJ8InhV0LVUK+Neb5ngQOwFTM=";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
aiodns
|
aiodns
|
||||||
tldextract
|
tldextract
|
||||||
|
whodap
|
||||||
];
|
];
|
||||||
|
|
||||||
checkInputs = [
|
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 { };
|
whitenoise = callPackage ../development/python-modules/whitenoise { };
|
||||||
|
|
||||||
|
whodap = callPackage ../development/python-modules/whodap { };
|
||||||
|
|
||||||
whois = callPackage ../development/python-modules/whois { };
|
whois = callPackage ../development/python-modules/whois { };
|
||||||
|
|
||||||
whoosh = callPackage ../development/python-modules/whoosh { };
|
whoosh = callPackage ../development/python-modules/whoosh { };
|
||||||
|
|
Loading…
Reference in a new issue