depot/third_party/nixpkgs/pkgs/development/python-modules/haversine/default.nix
Default email c594a97518 Project import generated by Copybara.
GitOrigin-RevId: 301aada7a64812853f2e2634a530ef5d34505048
2022-10-21 20:38:19 +02:00

38 lines
720 B
Nix

{ lib
, buildPythonPackage
, 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}";
hash = "sha256-iAGG1mjrt6oJ0IkmlJwrvb2Bpk4dNxV7ee9LYov03UY=";
};
checkInputs = [
numpy
pytestCheckHook
];
pythonImportsCheck = [
"haversine"
];
meta = with lib; {
description = "Python module the distance between 2 points on earth";
homepage = "https://github.com/mapado/haversine";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}