python3Packages.momepy: init at 0.7.0

This commit is contained in:
Nikolay Korotkiy 2024-06-09 10:15:59 +04:00
parent 77927b3fe3
commit 2921686e0f
No known key found for this signature in database
GPG Key ID: D1DE6D7F693663A5
2 changed files with 59 additions and 0 deletions

View File

@ -0,0 +1,57 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
pythonOlder,
geopandas,
inequality,
libpysal,
mapclassify,
networkx,
packaging,
pandas,
setuptools-scm,
shapely,
tqdm,
}:
buildPythonPackage rec {
pname = "momepy";
version = "0.7.0";
pyproject = true;
disabled = pythonOlder "3.10";
src = fetchFromGitHub {
owner = "pysal";
repo = "momepy";
rev = "v${version}";
hash = "sha256-HVp2a0z+5fbfkNSxnTfZPCgG2SJMlKX/zso14M18mCk=";
};
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;
};
}

View File

@ -7677,6 +7677,8 @@ self: super: with self; {
molecule-plugins = callPackage ../development/python-modules/molecule/plugins.nix { };
momepy = callPackage ../development/python-modules/momepy { };
monai = callPackage ../development/python-modules/monai { };
monai-deploy = callPackage ../development/python-modules/monai-deploy { };