nur-packages

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

default.nix (916B)


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