diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2021-01-04 14:29:35 +0100 |
---|---|---|
committer | Fabian Affolter <mail@fabian-affolter.ch> | 2021-01-04 14:29:35 +0100 |
commit | 779662af30293df050e7ea7403611a6babaae073 (patch) | |
tree | 6376676b6db894e4814cf300e1205bc4cb43077c | |
parent | 20489e31cd2cada27690612689a3bf5e608c5109 (diff) | |
download | nixlib-779662af30293df050e7ea7403611a6babaae073.tar nixlib-779662af30293df050e7ea7403611a6babaae073.tar.gz nixlib-779662af30293df050e7ea7403611a6babaae073.tar.bz2 nixlib-779662af30293df050e7ea7403611a6babaae073.tar.lz nixlib-779662af30293df050e7ea7403611a6babaae073.tar.xz nixlib-779662af30293df050e7ea7403611a6babaae073.tar.zst nixlib-779662af30293df050e7ea7403611a6babaae073.zip |
python3Packages.python-whois: init at 0.7.3
-rw-r--r-- | pkgs/development/python-modules/python-whois/default.nix | 41 | ||||
-rw-r--r-- | pkgs/top-level/python-packages.nix | 2 |
2 files changed, 43 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/python-whois/default.nix b/pkgs/development/python-modules/python-whois/default.nix new file mode 100644 index 000000000000..c4d163100ca9 --- /dev/null +++ b/pkgs/development/python-modules/python-whois/default.nix @@ -0,0 +1,41 @@ +{ 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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index cfb9ac52ccb1..c91cbc93214b 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -6147,6 +6147,8 @@ in { python-vlc = callPackage ../development/python-modules/python-vlc { }; + python-whois = callPackage ../development/python-modules/python-whois { }; + python-wifi = callPackage ../development/python-modules/python-wifi { }; python-xmp-toolkit = callPackage ../development/python-modules/python-xmp-toolkit { }; |