package.nix (1020B)
1 { 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 python3Packages, 6 overturemaps, 7 }: 8 9 python3Packages.buildPythonPackage (finalAttrs: { 10 pname = "city2graph"; 11 version = "0.2.4"; 12 pyproject = true; 13 14 src = fetchFromGitHub { 15 owner = "c2g-dev"; 16 repo = "city2graph"; 17 tag = "v${finalAttrs.version}"; 18 hash = "sha256-dqdupUF7mS49J8BNnh9VVdsNmPIqHHUzi8DF3zaLMZs="; 19 }; 20 21 build-system = with python3Packages; [ 22 hatchling 23 ]; 24 25 pythonRelaxDeps = true; 26 27 dependencies = with python3Packages; [ 28 geopy 29 networkx 30 osmnx 31 shapely 32 geopandas 33 libpysal 34 momepy 35 overturemaps 36 rustworkx 37 torch 38 torch-geometric 39 ]; 40 41 nativeCheckInputs = with python3Packages; [ 42 pytestCheckHook 43 pytest-cov-stub 44 ]; 45 46 meta = { 47 description = "GeoAI with Graph Neural Networks (GNNs) and Spatial Network Analysis"; 48 homepage = "https://github.com/c2g-dev/city2graph"; 49 license = lib.licenses.bsd3; 50 maintainers = [ lib.maintainers.sikmir ]; 51 broken = stdenv.isDarwin; 52 }; 53 })
