nur-packages

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

default.nix (1065B)


      1 {
      2   lib,
      3   fetchFromGitHub,
      4   python3Packages,
      5 }:
      6 
      7 python3Packages.buildPythonApplication {
      8   pname = "gpx-interpolate";
      9   version = "0-unstable-2023-10-28";
     10   format = "other";
     11 
     12   src = fetchFromGitHub {
     13     owner = "remisalmon";
     14     repo = "gpx-interpolate";
     15     rev = "00af3c636d566d049f6a140c093af4e91d0482d5";
     16     hash = "sha256-cCiRXpX6qj2o+vPs3V0/+UwnnHKvDFOgTbCV347BKkc=";
     17   };
     18 
     19   dependencies = with python3Packages; [
     20     gpxpy
     21     scipy
     22     numpy
     23   ];
     24 
     25   dontUseSetuptoolsBuild = true;
     26 
     27   checkPhase = ''
     28     ${python3Packages.python.interpreter} -m doctest -o IGNORE_EXCEPTION_DETAIL -f tests/tests.txt
     29   '';
     30 
     31   installPhase = ''
     32     sed -i '1i #!/usr/bin/env python3' gpx_interpolate.py
     33     install -Dm755 gpx_interpolate.py $out/bin/gpx-interpolate
     34   '';
     35 
     36   meta = {
     37     description = "Python script to interpolate GPX files using piecewise cubic Hermite splines";
     38     homepage = "https://github.com/remisalmon/gpx-interpolate";
     39     license = lib.licenses.mit;
     40     maintainers = [ lib.maintainers.sikmir ];
     41     mainProgram = "gpx-interpolate";
     42   };
     43 }