mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-18 03:34:58 +00:00
42 lines
784 B
Nix
42 lines
784 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, future
|
|
, nose
|
|
, pytestCheckHook
|
|
, simplejson
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "python-whois";
|
|
version = "0.7.3";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "05jaxbnlw5wck0hl124py364jqrx7a4mmv0hy3d2jzvmp0012sk5";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|