1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, numpy 5, pytestCheckHook 6, pythonOlder 7}: 8 9buildPythonPackage rec { 10 pname = "haversine"; 11 version = "2.8.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-cwvTs/91eJhjmeuCQAUBgfnKuCiLEg1jSnrXfx9VWkI="; 21 }; 22 23 nativeCheckInputs = [ 24 numpy 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"; 34 homepage = "https://github.com/mapado/haversine"; 35 license = with licenses; [ mit ]; 36 maintainers = with maintainers; [ fab ]; 37 }; 38}