nur-packages

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

package.nix (1086B)


      1 {
      2   lib,
      3   fetchFromGitHub,
      4   python3Packages,
      5   portolan,
      6   roentgen-icons,
      7 }:
      8 
      9 python3Packages.buildPythonApplication (finalAttrs: {
     10   pname = "map-machine";
     11   version = "0.3.0";
     12   pyproject = true;
     13 
     14   src = fetchFromGitHub {
     15     owner = "enzet";
     16     repo = "map-machine";
     17     tag = "v${finalAttrs.version}";
     18     hash = "sha256-OLwW+mZ+zYhPV7w7qAWsAOt2q7FhpYYoY5Kz6KQuGfg=";
     19   };
     20 
     21   build-system = with python3Packages; [ setuptools ];
     22 
     23   pythonRelaxDeps = true;
     24 
     25   dependencies = with python3Packages; [
     26     cairosvg
     27     colour
     28     gpxpy
     29     numpy
     30     pillow
     31     portolan
     32     pycairo
     33     pyyaml
     34     roentgen-icons
     35     shapely
     36     svgwrite
     37     typing-extensions
     38     urllib3
     39   ];
     40 
     41   nativeCheckInputs = with python3Packages; [ pytestCheckHook ];
     42   preCheck = "export PATH=$PATH:$out/bin";
     43   disabledTests = [ "test_tile" ];
     44 
     45   meta = {
     46     description = "A simple renderer for OpenStreetMap with custom icons";
     47     homepage = "https://github.com/enzet/map-machine";
     48     license = lib.licenses.mit;
     49     maintainers = [ lib.maintainers.sikmir ];
     50     mainProgram = "map-machine";
     51   };
     52 })