{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
pythonOlder,
geopandas,
inequality,
libpysal,
mapclassify,
networkx,
packaging,
pandas,
setuptools-scm,
shapely,
tqdm,
}:
buildPythonPackage rec {
pname = "momepy";
version = "0.9.1";
pyproject = true;
disabled = pythonOlder "3.10";
src = fetchFromGitHub {
owner = "pysal";
repo = "momepy";
tag = "v${version}";
hash = "sha256-9bFPxpopmrwNKdCEF+jlPRoNiVFrngW+sMeshq2EDYU=";
};
build-system = [ setuptools-scm ];
propagatedBuildInputs = [
geopandas
inequality
libpysal
mapclassify
networkx
packaging
pandas
shapely
tqdm
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "momepy" ];
meta = {
description = "Urban Morphology Measuring Toolkit";
homepage = "https://github.com/pysal/momepy";
license = lib.licenses.bsd3;
maintainers = lib.teams.geospatial.members;
}