Merge pull request #175442 from fabaff/whodap-disable

python310Packages.whodap: disable on older Python releases
This commit is contained in:
Fabian Affolter 2022-05-30 19:21:58 +02:00 committed by GitHub
commit 16b33d4778
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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";