lol

python310Packages.haversine: disable on older Python releases

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