Merge pull request #175442 from fabaff/whodap-disable
python310Packages.whodap: disable on older Python releases
This commit is contained in:
commit
16b33d4778
|
@ -4,27 +4,25 @@
|
|||
, fetchFromGitHub
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, async_generator
|
||||
, httpx
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "whodap";
|
||||
version = "0.1.5";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "pogzyb";
|
||||
repo = pname;
|
||||
rev = "refs/tags/v${version}";
|
||||
sha256 = "sha256-Jm3+WMGuYc910TNDVzHjYcbNcts668D3xYORXxozWqA=";
|
||||
hash = "sha256-Jm3+WMGuYc910TNDVzHjYcbNcts668D3xYORXxozWqA=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
httpx
|
||||
] ++ lib.optionals (pythonOlder "3.7") [
|
||||
async_generator
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
|
@ -37,7 +35,9 @@ buildPythonPackage rec {
|
|||
"tests/test_client.py"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "whodap" ];
|
||||
pythonImportsCheck = [
|
||||
"whodap"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python RDAP utility for querying and parsing information about domain names";
|
||||
|
|
Loading…
Reference in a new issue