2024-06-20 14:57:18 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
|
|
|
|
geopandas,
|
|
|
|
inequality,
|
|
|
|
libpysal,
|
|
|
|
mapclassify,
|
|
|
|
networkx,
|
|
|
|
packaging,
|
|
|
|
pandas,
|
|
|
|
setuptools-scm,
|
|
|
|
shapely,
|
|
|
|
tqdm,
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "momepy";
|
2024-10-04 16:56:33 +00:00
|
|
|
version = "0.8.1";
|
2024-06-20 14:57:18 +00:00
|
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.10";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pysal";
|
|
|
|
repo = "momepy";
|
2024-10-04 16:56:33 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-9GVX+OaBkLb3Q/RRHbGOlAJ3gu2K+V07ez6v9dWU6JU=";
|
2024-06-20 14:57:18 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|