at master 1.1 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 cachecontrol, 6 filelock, 7 mypy, 8 pillow, 9 poetry-core, 10 requests, 11 ruff, 12 types-requests, 13 unittestCheckHook, 14}: 15 16buildPythonPackage rec { 17 pname = "staticmap3"; 18 version = "0.1.0"; 19 pyproject = true; 20 21 src = fetchFromGitHub { 22 owner = "SamR1"; 23 repo = "staticmap"; 24 tag = "v${version}"; 25 hash = "sha256-SMy4yxHA9Z3BFW6kX8vC7WfsmuZMNqocJ9+dJB6zwSs="; 26 }; 27 28 build-system = [ 29 poetry-core 30 ]; 31 32 dependencies = [ 33 cachecontrol 34 requests 35 pillow 36 ]; 37 38 nativeCheckInputs = [ 39 unittestCheckHook 40 ]; 41 42 optional-dependencies = { 43 filecache = [ filelock ]; 44 dev = [ 45 mypy 46 ruff 47 types-requests 48 ]; 49 }; 50 51 pythonImportsCheck = [ "staticmap3" ]; 52 53 meta = { 54 description = "Small, python-based library for creating map images with lines and markers"; 55 homepage = "https://github.com/SamR1/staticmap"; 56 changelog = "https://github.com/SamR1/staticmap/releases/tag/v${version}"; 57 license = lib.licenses.asl20; 58 maintainers = with lib.maintainers; [ tebriel ]; 59 }; 60}