python310Packages.haversine: disable on older Python releases
This commit is contained in:
parent
58f404c209
commit
6538ea8876
1 changed files with 8 additions and 2 deletions
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue