diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2021-01-24 21:54:49 +0100 |
---|---|---|
committer | Fabian Affolter <mail@fabian-affolter.ch> | 2021-01-24 21:54:49 +0100 |
commit | 480f0263caaaabd75211befd2e9c4b175cb191ae (patch) | |
tree | 856a7d9c99c7ab4be56e4680060e934d381998c0 /pkgs/development/python-modules/haversine | |
parent | 1af6e3aeedce4e7c41738f847923daba186adeb9 (diff) |
python3Packages.haversine: init at 2.3.0
Diffstat (limited to 'pkgs/development/python-modules/haversine')
-rw-r--r-- | pkgs/development/python-modules/haversine/default.nix | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/haversine/default.nix b/pkgs/development/python-modules/haversine/default.nix new file mode 100644 index 0000000000000..7f5e462d1b3cb --- /dev/null +++ b/pkgs/development/python-modules/haversine/default.nix @@ -0,0 +1,32 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, numpy +, pytestCheckHook +}: + +buildPythonPackage rec { + pname = "haversine"; + version = "2.3.0"; + + src = fetchFromGitHub { + owner = "mapado"; + repo = pname; + rev = "v${version}"; + sha256 = "1c3yf9162b2b7l1lsw3ffd1linnc542qvljpgwxp6y5arrmljqnv"; + }; + + 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 ]; + }; +} |