nur-packages

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

default.nix (914B)


      1 { lib, fetchFromGitHub, python3Packages, portolan }:
      2 
      3 python3Packages.buildPythonApplication rec {
      4   pname = "map-machine";
      5   version = "2022-05-16";
      6   disabled = python3Packages.pythonOlder "3.9";
      7 
      8   src = fetchFromGitHub {
      9     owner = "enzet";
     10     repo = pname;
     11     rev = "2b6f2d8968e02d88e1c65b5d87aec787d9756608";
     12     hash = "sha256-PfFayKH3GdOhxgfoX6jJHgDl95IdRQ9o76p1bs1O2MQ=";
     13   };
     14 
     15   propagatedBuildInputs = with python3Packages; [
     16     cairosvg
     17     colour
     18     numpy
     19     pillow
     20     portolan
     21     pycairo
     22     pyyaml
     23     shapely
     24     svgwrite
     25     urllib3
     26   ];
     27 
     28   checkInputs = with python3Packages; [ pytestCheckHook ];
     29   preCheck = "export PATH=$PATH:$out/bin";
     30   disabledTests = [
     31     "test_tile"
     32   ];
     33 
     34   meta = with lib; {
     35     description = "A simple renderer for OpenStreetMap with custom icons";
     36     inherit (src.meta) homepage;
     37     license = licenses.mit;
     38     maintainers = [ maintainers.sikmir ];
     39   };
     40 }