nur-packages

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

default.nix (950B)


      1 { lib, stdenv, python3Packages, fetchFromGitHub }:
      2 
      3 python3Packages.buildPythonPackage rec {
      4   pname = "osm-python-tools";
      5   version = "0.3.5";
      6 
      7   src = fetchFromGitHub {
      8     owner = "mocnik-science";
      9     repo = "osm-python-tools";
     10     rev = "v${version}";
     11     hash = "sha256-lTDA1Rad9aYI/ymU/0xzdJHmebUGcpVJ0GW7D0Ujdko=";
     12   };
     13 
     14   postPatch = ''
     15     substituteInPlace setup.py \
     16       --replace-fail "'pytest" "#'pytest" \
     17   '';
     18 
     19   propagatedBuildInputs = with python3Packages; [
     20     beautifulsoup4
     21     geojson
     22     lxml
     23     matplotlib
     24     numpy
     25     pandas
     26     ujson
     27     xarray
     28   ];
     29 
     30   doCheck = false;
     31 
     32   pythonImportsCheck = [
     33     "OSMPythonTools.api"
     34     "OSMPythonTools.data"
     35     "OSMPythonTools.nominatim"
     36     "OSMPythonTools.overpass"
     37   ];
     38 
     39   meta = with lib; {
     40     description = "A library to access OpenStreetMap related services";
     41     inherit (src.meta) homepage;
     42     license = licenses.gpl3;
     43     maintainers = [ maintainers.sikmir ];
     44   };
     45 }