nur-packages

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

default.nix (966B)


      1 { lib, stdenv, python3Packages, fetchFromGitHub }:
      2 
      3 python3Packages.buildPythonPackage rec {
      4   pname = "osm-python-tools";
      5   version = "2021-09-16";
      6 
      7   src = fetchFromGitHub {
      8     owner = "mocnik-science";
      9     repo = pname;
     10     rev = "4ae053f65c1639bb8f0fe961c94594d31eada952";
     11     hash = "sha256-3Eru0pXJtKDBs3mSpW+Z+r8d2XLmuMRTEhA4IMPrPpQ=";
     12   };
     13 
     14   postPatch = ''
     15     substituteInPlace setup.py \
     16       --replace "'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 }