nur-packages

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

package.nix (947B)


      1 {
      2   lib,
      3   stdenv,
      4   python3Packages,
      5   fetchFromGitHub,
      6   cykhash,
      7   pyrobuf,
      8 }:
      9 
     10 python3Packages.buildPythonPackage (finalAttrs: {
     11   pname = "pyrosm";
     12   version = "0.13.1";
     13   pyproject = true;
     14 
     15   src = fetchFromGitHub {
     16     owner = "HTenkanen";
     17     repo = "pyrosm";
     18     tag = "v${finalAttrs.version}";
     19     hash = "sha256-SN/scNc+UUkWeINF2xYUrtC333DQGiz+owMWzUHwjs0=";
     20   };
     21 
     22   build-system = with python3Packages; [
     23     setuptools
     24     cython
     25   ];
     26 
     27   dependencies = with python3Packages; [
     28     python-rapidjson
     29     geopandas
     30     shapely
     31     cykhash
     32     protobuf
     33     pyrobuf
     34   ];
     35 
     36   doCheck = false;
     37 
     38   nativeCheckInputs = with python3Packages; [ pytestCheckHook ];
     39 
     40   pythonImportsCheck = [ "pyrosm" ];
     41 
     42   meta = {
     43     description = "A Python tool to parse OSM data from Protobuf format into GeoDataFrame";
     44     homepage = "https://github.com/HTenkanen/pyrosm";
     45     license = lib.licenses.mit;
     46     maintainers = [ lib.maintainers.sikmir ];
     47   };
     48 })