nur-packages

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

default.nix (915B)


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