nur-packages

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

package.nix (888B)


      1 {
      2   lib,
      3   stdenv,
      4   python311Packages,
      5   fetchFromGitHub,
      6   thinplatespline,
      7 }:
      8 
      9 python311Packages.buildPythonPackage {
     10   pname = "maprec";
     11   version = "0-unstable-2023-04-18";
     12   pyproject = true;
     13 
     14   src = fetchFromGitHub {
     15     owner = "wladich";
     16     repo = "maprec";
     17     rev = "ccefe661659a30c1bd334710e5884256b945a042";
     18     hash = "sha256-jm7B5I5OxG3oVxq/AUzN2P1GPa5uQIx0TWMKgx47C28=";
     19   };
     20 
     21   postPatch = ''
     22     substituteInPlace setup.py \
     23       --replace-fail " @ git+https://github.com/wladich/thinplatespline.git" ""
     24   '';
     25 
     26   build-system = with python311Packages; [ setuptools ];
     27 
     28   dependencies = with python311Packages; [
     29     pyyaml
     30     pyproj
     31     thinplatespline
     32   ];
     33 
     34   doCheck = false;
     35 
     36   pythonImportsCheck = [ "maprec" ];
     37 
     38   meta = {
     39     homepage = "https://github.com/wladich/maprec";
     40     license = lib.licenses.free;
     41     maintainers = [ lib.maintainers.sikmir ];
     42   };
     43 }