nur-packages

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

default.nix (887B)


      1 { lib, fetchFromGitHub, python3Packages }:
      2 
      3 python3Packages.buildPythonApplication rec {
      4   pname = "gpx_interpolate";
      5   version = "2021-01-24";
      6 
      7   src = fetchFromGitHub {
      8     owner = "remisalmon";
      9     repo = pname;
     10     rev = "24236e45e3d8baa0662c329b735b79a17e84c1bd";
     11     hash = "sha256-bN8ED3H4FXjfG9q7sIC7UmhvIFCgkbueUSFW/Q7uKD4=";
     12   };
     13 
     14   propagatedBuildInputs = with python3Packages; [ gpxpy scipy numpy ];
     15 
     16   dontUseSetuptoolsBuild = true;
     17 
     18   checkPhase = ''
     19     ${python3Packages.python.interpreter} -m doctest -o IGNORE_EXCEPTION_DETAIL -f test/test.txt
     20   '';
     21 
     22   installPhase = ''
     23     install -Dm755 gpx_interpolate.py $out/bin/gpx_interpolate
     24   '';
     25 
     26   meta = with lib; {
     27     description = "Python script to interpolate GPX files using linear or spline interpolation";
     28     inherit (src.meta) homepage;
     29     license = licenses.mit;
     30     maintainers = [ maintainers.sikmir ];
     31   };
     32 }