My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/haversine/default.nix

32 lines
644 B

{ lib
, buildPythonPackage
, fetchFromGitHub
, numpy
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "haversine";
version = "2.5.1";
src = fetchFromGitHub {
owner = "mapado";
repo = pname;
rev = "v${version}";
sha256 = "sha256-tHA1Ff/J1mfSnER2X/8e0QyQkuRz1mn8MeGlThVQaSg=";
};
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 ];
};
}