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
53 lines
1.0 KiB
Nix
53 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
docutils,
|
|
fetchFromGitHub,
|
|
geographiclib,
|
|
pytest7CheckHook,
|
|
pythonAtLeast,
|
|
pytz,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "geopy";
|
|
version = "2.4.1";
|
|
format = "setuptools";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "geopy";
|
|
repo = "geopy";
|
|
tag = version;
|
|
hash = "sha256-mlOXDEtYry1IUAZWrP2FuY/CGliUnCPYLULnLNN0n4Y=";
|
|
};
|
|
|
|
propagatedBuildInputs = [ geographiclib ];
|
|
|
|
nativeCheckInputs = [
|
|
docutils
|
|
pytest7CheckHook
|
|
pytz
|
|
];
|
|
|
|
disabledTests = [
|
|
# ignore --skip-tests-requiring-internet flag
|
|
"test_user_agent_default"
|
|
];
|
|
|
|
disabledTestPaths = lib.optionals (pythonAtLeast "3.12") [ "test/test_init.py" ];
|
|
|
|
pytestFlags = [ "--skip-tests-requiring-internet" ];
|
|
|
|
pythonImportsCheck = [ "geopy" ];
|
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
meta = {
|
|
homepage = "https://github.com/geopy/geopy";
|
|
description = "Python Geocoding Toolbox";
|
|
changelog = "https://github.com/geopy/geopy/releases/tag/${version}";
|
|
license = with lib.licenses; [ mit ];
|
|
maintainers = [ ];
|
|
};
|
|
}
|