nur-packages

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

default.nix (775B)


      1 { lib, stdenv, python3Packages, fetchFromGitHub, thinplatespline }:
      2 
      3 python3Packages.buildPythonPackage rec {
      4   pname = "maprec";
      5   version = "0-unstable-2023-04-18";
      6 
      7   src = fetchFromGitHub {
      8     owner = "wladich";
      9     repo = "maprec";
     10     rev = "ccefe661659a30c1bd334710e5884256b945a042";
     11     hash = "sha256-jm7B5I5OxG3oVxq/AUzN2P1GPa5uQIx0TWMKgx47C28=";
     12   };
     13 
     14   postPatch = ''
     15     substituteInPlace setup.py \
     16       --replace-fail " @ git+https://github.com/wladich/thinplatespline.git" ""
     17   '';
     18 
     19   propagatedBuildInputs = with python3Packages; [ pyyaml pyproj thinplatespline ];
     20 
     21   doCheck = false;
     22 
     23   pythonImportsCheck = [ "maprec" ];
     24 
     25   meta = with lib; {
     26     inherit (src.meta) homepage;
     27     license = licenses.free;
     28     maintainers = [ maintainers.sikmir ];
     29   };
     30 }