default.nix (765B)
1 { lib, fetchFromGitHub, python3Packages, s2sphere }: 2 3 python3Packages.buildPythonApplication rec { 4 pname = "py-staticmaps"; 5 version = "0.3.0"; 6 7 src = fetchFromGitHub { 8 owner = "flopp"; 9 repo = pname; 10 rev = "v${version}"; 11 hash = "sha256-vW457HbdDDhfz8hsvEN3/HJmIHKdrRDVNuhSpZXoZ78="; 12 }; 13 14 propagatedBuildInputs = with python3Packages; [ appdirs geographiclib pillow pycairo python-slugify requests s2sphere svgwrite ]; 15 16 checkInputs = with python3Packages; [ pytestCheckHook ]; 17 18 meta = with lib; { 19 description = "A python module to create static map images with markers, geodesic lines, etc"; 20 inherit (src.meta) homepage; 21 license = licenses.mit; 22 maintainers = [ maintainers.sikmir ]; 23 platforms = platforms.unix; 24 }; 25 }