1a04744f74
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
1011 B
Nix
49 lines
1011 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
python-memcached,
|
|
pytestCheckHook,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "cymruwhois";
|
|
version = "1.6";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "JustinAzoff";
|
|
repo = "python-cymruwhois";
|
|
tag = version;
|
|
hash = "sha256-d9m668JYI9mxUycoVWyaDCR7SOca+ebymZxWtgSPWNU=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
optional-dependencies = {
|
|
CACHE = [ python-memcached ];
|
|
};
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "cymruwhois" ];
|
|
|
|
disabledTests = [
|
|
# AssertionError
|
|
"test_doctest"
|
|
];
|
|
|
|
disabledTestPaths = [
|
|
# £Failed: 'yield' keyword is allowed in fixtures, but not in tests (test_common)
|
|
"tests/test_common_lookups.py"
|
|
];
|
|
|
|
meta = {
|
|
description = "Python client for the whois.cymru.com service";
|
|
homepage = "https://github.com/JustinAzoff/python-cymruwhois";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ fab ];
|
|
};
|
|
}
|