depot/third_party/nixpkgs/pkgs/development/python-modules/whodap/default.nix
Default email 5557ff764c Project import generated by Copybara.
GitOrigin-RevId: 988cc958c57ce4350ec248d2d53087777f9e1949
2023-02-22 11:55:15 +01:00

49 lines
984 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pytest-asyncio
, pytestCheckHook
, pythonOlder
, httpx
}:
buildPythonPackage rec {
pname = "whodap";
version = "0.1.8";
format = "setuptools";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "pogzyb";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-hAU9143R/LDqDBgX3Y+gBG+dt4dpIIPDdO6HgH0ZTfg=";
};
propagatedBuildInputs = [
httpx
];
nativeCheckInputs = [
pytest-asyncio
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";
changelog = "https://github.com/pogzyb/whodap/releases/tag/v${version}";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}