Something went wrong. Try again.
lol
Something went wrong. Try again.
1.2 kB · 66 lines
Nix
at master
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667{ lib, buildPythonPackage, fetchFromGitHub, pytestCheckHook,
geopandas, inequality, libpysal, mapclassify, networkx, packaging, pandas, setuptools-scm, shapely, tqdm,}:
buildPythonPackage rec { pname = "momepy"; version = "0.11.0"; pyproject = true;
src = fetchFromGitHub { owner = "pysal"; repo = "momepy"; tag = "v${version}"; hash = "sha256-Og7W+35k9HIIEFGcDmsxggb1BT5cwnaMIi3HO3VRAX0="; };
patches = [ # see https://github.com/pysal/momepy/pull/733 ./fix_test_elements.patch ];
build-system = [ setuptools-scm ];
propagatedBuildInputs = [ geopandas inequality libpysal mapclassify networkx packaging pandas shapely tqdm ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "momepy" ];
disabledTestPaths = [ # this tests depends on neatnet, not packaged in nixpkgs # it's probably not worthy to package it just for this test "momepy/tests/test_continuity.py" ];
meta = { description = "Urban Morphology Measuring Toolkit"; homepage = "https://github.com/pysal/momepy"; license = lib.licenses.bsd3; teams = [ lib.teams.geospatial ]; };}