summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/staticmap/default.nix
blob: 83351a8b77e91e6a48cef5174c72b3ac7ebed23b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{
  lib,
  buildPythonPackage,
  fetchPypi,
  pillow,
  requests,
}:

buildPythonPackage rec {
  pname = "staticmap";
  version = "0.5.7";
  format = "setuptools";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-x6lrkCumEpLoGMILCBBhnWuBps21C8wauS1QrE2yCn8=";
  };

  propagatedBuildInputs = [
    requests
    pillow
  ];

  pythonImportsCheck = [ "staticmap" ];

  # Tests seem to be broken
  doCheck = false;

  meta = {
    description = "Small, python-based library for creating map images with lines and markers";
    homepage = "https://pypi.org/project/staticmap/";
    license = with lib.licenses; [ asl20 ];
    maintainers = with lib.maintainers; [ traxys ];
  };
}