python310Packages.haversine: disable on older Python releases

+8 -2
+8 -2
pkgs/development/python-modules/haversine/default.nix
··· 3 3 , fetchFromGitHub 4 4 , numpy 5 5 , pytestCheckHook 6 + , pythonOlder 6 7 }: 7 8 8 9 buildPythonPackage rec { 9 10 pname = "haversine"; 10 11 version = "2.7.0"; 12 + format = "setuptools"; 13 + 14 + disabled = pythonOlder "3.7"; 11 15 12 16 src = fetchFromGitHub { 13 17 owner = "mapado"; 14 18 repo = pname; 15 19 rev = "v${version}"; 16 - sha256 = "sha256-iAGG1mjrt6oJ0IkmlJwrvb2Bpk4dNxV7ee9LYov03UY="; 20 + hash = "sha256-iAGG1mjrt6oJ0IkmlJwrvb2Bpk4dNxV7ee9LYov03UY="; 17 21 }; 18 22 19 23 checkInputs = [ ··· 21 25 pytestCheckHook 22 26 ]; 23 27 24 - pythonImportsCheck = [ "haversine" ]; 28 + pythonImportsCheck = [ 29 + "haversine" 30 + ]; 25 31 26 32 meta = with lib; { 27 33 description = "Python module the distance between 2 points on earth";