depot/third_party/nixpkgs/pkgs/development/python-modules/momepy/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

57 lines
976 B
Nix

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