depot/third_party/nixpkgs/pkgs/development/python-modules/whois-api/default.nix
Default email b5f92a349c Project import generated by Copybara.
GitOrigin-RevId: 7c9cc5a6e5d38010801741ac830a3f8fd667a7a0
2023-10-19 15:55:26 +02:00

41 lines
864 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, setuptools
, requests
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "whois-api";
version = "1.2.0";
pyproject = true;
src = fetchFromGitHub {
owner = "whois-api-llc";
repo = "whois-api-py";
rev = "v${version}";
hash = "sha256-SeBeJ6k2R53LxHov+8t70geqUosk/yBJQCi6GaVteMM=";
};
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
requests
];
# all tests touch internet
doCheck = false;
pythonImportsCheck = [ "whoisapi" ];
meta = with lib; {
description = "Whois API client library for Python";
homepage = "https://github.com/whois-api-llc/whois-api-py";
changelog = "https://github.com/whois-api-llc/whois-api-py/blob/${src.rev}/CHANGELOG.rst";
license = licenses.mit;
maintainers = with maintainers; [ mbalatsko ];
};
}