2021-01-05 17:05:55 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, future
|
|
|
|
, nose
|
|
|
|
, pytestCheckHook
|
|
|
|
, simplejson
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "python-whois";
|
2022-07-14 12:49:19 +00:00
|
|
|
version = "0.8.0";
|
2021-01-05 17:05:55 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-07-14 12:49:19 +00:00
|
|
|
sha256 = "sha256-3TNtNRfqzip2iUBtt7uWraPF50MnQjFRru4+ZCJfYiA=";
|
2021-01-05 17:05:55 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ future ];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|