package.nix (968B)
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.28.0"; 13 pyproject = true; 14 15 src = fetchFromGitHub { 16 owner = "HTenkanen"; 17 repo = "pyrosm"; 18 tag = "v${finalAttrs.version}"; 19 hash = "sha256-XjTpqqWmq/tMmy80u4LFvlaZ0H64pSlbW0WN/JK2eaQ="; 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 pyarrow 34 pyrobuf 35 tqdm 36 ]; 37 38 doCheck = false; 39 40 nativeCheckInputs = with python3Packages; [ pytestCheckHook ]; 41 42 pythonImportsCheck = [ "pyrosm" ]; 43 44 meta = { 45 description = "A Python tool to parse OSM data from Protobuf format into GeoDataFrame"; 46 homepage = "https://github.com/HTenkanen/pyrosm"; 47 license = lib.licenses.mit; 48 maintainers = [ lib.maintainers.sikmir ]; 49 }; 50 })
