nur-packages

My NUR packages
git clone git://git.sikmir.ru/nur-packages
Log | Files | Refs | README | LICENSE

default.nix (976B)


      1 {
      2   lib,
      3   fetchFromGitHub,
      4   python312Packages,
      5   s2sphere,
      6 }:
      7 
      8 python312Packages.buildPythonApplication rec {
      9   pname = "py-staticmaps";
     10   version = "0.5.0";
     11   pyproject = true;
     12 
     13   src = fetchFromGitHub {
     14     owner = "flopp";
     15     repo = "py-staticmaps";
     16     tag = "v${version}";
     17     hash = "sha256-TWLPCM1tsWiRCLDhowC/uQrDUujNO3FuDgnUQXMcTm0=";
     18   };
     19 
     20   postPatch = ''
     21     sed -i '/^slugify/d' requirements.txt
     22   '';
     23 
     24   build-system = with python312Packages; [ setuptools ];
     25 
     26   dependencies = with python312Packages; [
     27     appdirs
     28     geographiclib
     29     pillow
     30     pycairo
     31     python-slugify
     32     requests
     33     s2sphere
     34     svgwrite
     35     types-requests
     36   ];
     37 
     38   nativeCheckInputs = with python312Packages; [ pytestCheckHook ];
     39 
     40   meta = {
     41     description = "A python module to create static map images with markers, geodesic lines, etc";
     42     homepage = "https://github.com/flopp/py-staticmaps";
     43     license = lib.licenses.mit;
     44     maintainers = [ lib.maintainers.sikmir ];
     45   };
     46 }