nur-packages

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

default.nix (1104B)


      1 {
      2   lib,
      3   fetchFromGitHub,
      4   python3Packages,
      5 }:
      6 
      7 python3Packages.buildPythonApplication {
      8   pname = "osmwalkthrough";
      9   version = "0-unstable-2021-09-24";
     10   format = "other";
     11 
     12   src = fetchFromGitHub {
     13     owner = "leotrubach";
     14     repo = "osmwalkthrough";
     15     rev = "e96bbfd1e0465d7447c51056f5845da251b50cff";
     16     hash = "sha256-M727uDMHBkBie2g6Cl5QPGwQtcAnC3goJ9qM8VVEoUU=";
     17   };
     18 
     19   dontUseSetuptoolsBuild = true;
     20   doCheck = false;
     21 
     22   installPhase =
     23     let
     24       pythonEnv = python3Packages.python.withPackages (
     25         p: with p; [
     26           geographiclib
     27           geopy
     28           networkx
     29         ]
     30       );
     31     in
     32     ''
     33       site_packages=$out/lib/${python3Packages.python.libPrefix}/site-packages
     34       mkdir -p $site_packages
     35       cp *.py $site_packages
     36 
     37       makeWrapper ${pythonEnv.interpreter} $out/bin/solver \
     38         --add-flags "$site_packages/solver.py"
     39     '';
     40 
     41   meta = {
     42     description = "Draw ways you want to walk through";
     43     homepage = "https://github.com/leotrubach/osmwalkthrough";
     44     license = lib.licenses.gpl3;
     45     maintainers = [ lib.maintainers.sikmir ];
     46   };
     47 }