commit 1a4f2c14207b0410d53809c956efcc89c7e555ea parent 6e107b94431e826e4dc161549109c495e10aae3f Author: Nikolay Korotkiy <sikmir@gmail.com> Date: Sat, 10 Jul 2021 14:20:36 +0300 Add portolan Diffstat:
M | pkgs/default.nix | | | 1 | + |
A | pkgs/development/python-modules/portolan/default.nix | | | 20 | ++++++++++++++++++++ |
2 files changed, 21 insertions(+), 0 deletions(-)
diff --git a/pkgs/default.nix b/pkgs/default.nix @@ -98,6 +98,7 @@ lib.makeScope newScope ( lru-dict = callPackage ./development/python-modules/lru-dict { }; mikatools = callPackage ./development/python-modules/mikatools { }; morecantile = callPackage ./development/python-modules/morecantile { }; + portolan = callPackage ./development/python-modules/portolan { }; pymbtiles = callPackage ./development/python-modules/pymbtiles { }; python-hfst = callPackage ./development/python-modules/python-hfst { }; s2sphere = callPackage ./development/python-modules/s2sphere { }; diff --git a/pkgs/development/python-modules/portolan/default.nix b/pkgs/development/python-modules/portolan/default.nix @@ -0,0 +1,20 @@ +{ lib, fetchFromGitHub, python3Packages }: + +python3Packages.buildPythonPackage rec { + pname = "portolan"; + version = "1.0.1"; + + src = fetchFromGitHub { + owner = "fitnr"; + repo = pname; + rev = "v${version}"; + hash = "sha256-zKloFO7uCLkqgayxC11JRfMpNxIR+UkT/Xabb9AH8To="; + }; + + meta = with lib; { + description = "Convert between compass points and degrees"; + inherit (src.meta) homepage; + license = licenses.gpl3Only; + maintainers = [ maintainers.sikmir ]; + }; +}