mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-08 09:24:20 +01:00
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:
pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
for f in $(find -name '*.nix'); do
grep -q "$pattern" "$f" || continue
sed -i "/$pattern/d" "$f"
if [ $(grep -c pythonOlder "$f") == 1 ]; then
sed -i '/^\s*pythonOlder,\s*$/d' "$f"
fi
nixfmt "$f"
done
49 lines
968 B
Nix
49 lines
968 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
pytestCheckHook,
|
|
python-dateutil,
|
|
setuptools,
|
|
simplejson,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "python-whois";
|
|
version = "0.9.6";
|
|
pyproject = true;
|
|
|
|
src = fetchPypi {
|
|
pname = "python_whois";
|
|
inherit version;
|
|
hash = "sha256-Lm3nttcOMFqF9IWc0XeB7j8No6AqjpTyPLTNzS5AC/o=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [ python-dateutil ];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
simplejson
|
|
];
|
|
|
|
disabledTests = [
|
|
# Exclude tests that require network access
|
|
"test_dk_parse"
|
|
"test_ipv4"
|
|
"test_ipv6"
|
|
"test_choose_server"
|
|
"test_simple_ascii_domain"
|
|
"test_simple_unicode_domain"
|
|
];
|
|
|
|
pythonImportsCheck = [ "whois" ];
|
|
|
|
meta = {
|
|
description = "Python module to produce parsed WHOIS data";
|
|
homepage = "https://github.com/richardpenman/whois";
|
|
license = with lib.licenses; [ mit ];
|
|
maintainers = with lib.maintainers; [ fab ];
|
|
};
|
|
}
|