From 6538ea88769f084fa0403de0296ded24fff5664c Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 15 Oct 2022 12:20:54 +0200 Subject: [PATCH] python310Packages.haversine: disable on older Python releases --- pkgs/development/python-modules/haversine/default.nix | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/haversine/default.nix b/pkgs/development/python-modules/haversine/default.nix index 9608d9953ff7..690f5eb78846 100644 --- a/pkgs/development/python-modules/haversine/default.nix +++ b/pkgs/development/python-modules/haversine/default.nix @@ -3,17 +3,21 @@ , fetchFromGitHub , numpy , pytestCheckHook +, pythonOlder }: buildPythonPackage rec { pname = "haversine"; version = "2.7.0"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; src = fetchFromGitHub { owner = "mapado"; repo = pname; rev = "v${version}"; - sha256 = "sha256-iAGG1mjrt6oJ0IkmlJwrvb2Bpk4dNxV7ee9LYov03UY="; + hash = "sha256-iAGG1mjrt6oJ0IkmlJwrvb2Bpk4dNxV7ee9LYov03UY="; }; checkInputs = [ @@ -21,7 +25,9 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ "haversine" ]; + pythonImportsCheck = [ + "haversine" + ]; meta = with lib; { description = "Python module the distance between 2 points on earth";