nur-packages

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

default.nix (876B)


      1 {
      2   lib,
      3   stdenv,
      4   python3Packages,
      5   fetchFromGitHub,
      6   cykhash,
      7   pyrobuf,
      8 }:
      9 
     10 python3Packages.buildPythonPackage rec {
     11   pname = "pyrosm";
     12   version = "0.6.2";
     13 
     14   src = fetchFromGitHub {
     15     owner = "HTenkanen";
     16     repo = "pyrosm";
     17     rev = "v${version}";
     18     hash = "sha256-eX6lOkprU/RkSz2+dGlRtdQQsI+m9GZyN/VfcIix79k=";
     19   };
     20 
     21   nativeBuildInputs = with python3Packages; [ cython ];
     22 
     23   dependencies = with python3Packages; [
     24     python-rapidjson
     25     geopandas
     26     shapely
     27     cykhash
     28     pyrobuf
     29   ];
     30 
     31   doCheck = false;
     32 
     33   nativeCheckInputs = with python3Packages; [ pytestCheckHook ];
     34 
     35   pythonImportsCheck = [ "pyrosm" ];
     36 
     37   meta = {
     38     description = "A Python tool to parse OSM data from Protobuf format into GeoDataFrame";
     39     homepage = "https://github.com/HTenkanen/pyrosm";
     40     license = lib.licenses.mit;
     41     maintainers = [ lib.maintainers.sikmir ];
     42   };
     43 }