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;
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-3TNtNRfqzip2iUBtt7uWraPF50MnQjFRru4+ZCJfYiA=";
|
2021-01-05 17:05:55 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ future ];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-01-05 17:05:55 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|