504525a148
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
42 lines
812 B
Nix
42 lines
812 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, future
|
|
, nose
|
|
, pytestCheckHook
|
|
, simplejson
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "python-whois";
|
|
version = "0.8.0";
|
|
format = "setuptools";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-3TNtNRfqzip2iUBtt7uWraPF50MnQjFRru4+ZCJfYiA=";
|
|
};
|
|
|
|
propagatedBuildInputs = [ future ];
|
|
|
|
nativeCheckInputs = [
|
|
nose
|
|
pytestCheckHook
|
|
simplejson
|
|
];
|
|
|
|
# Exclude tests that require network access
|
|
disabledTests = [
|
|
"test_dk_parse"
|
|
"test_ipv4"
|
|
"test_ipv6"
|
|
];
|
|
pythonImportsCheck = [ "whois" ];
|
|
|
|
meta = with lib; {
|
|
description = "Python module to produce parsed WHOIS data";
|
|
homepage = "https://github.com/richardpenman/whois";
|
|
license = with licenses; [ mit ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|