Files
nixpkgs/pkgs/development/python-modules/momepy/default.nix
2026-04-02 09:56:27 +02:00

67 lines
1.2 KiB
Nix

{
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 ];
};
}