nixpkgs/pkgs/development/python-modules/staticmap/default.nix
Ihar Hrachyshka 567e8dfd8e
treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

35 lines
695 B
Nix

{
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 ];
};
}