1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-18 03:30:45 +00:00

Merge pull request #318448 from sikmir/momepy

python3Packages.momepy: init at 0.7.0
This commit is contained in:
Ivan Mincik 2024-06-09 07:26:21 +00:00 committed by GitHub
commit 7772e19149
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 106 additions and 0 deletions

View file

@ -0,0 +1,45 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
pythonOlder,
libpysal,
numpy,
scipy,
setuptools-scm,
}:
buildPythonPackage rec {
pname = "inequality";
version = "1.0.1";
pyproject = true;
disabled = pythonOlder "3.10";
src = fetchFromGitHub {
owner = "pysal";
repo = "inequality";
rev = "v${version}";
hash = "sha256-dy1/KXnmIh5LnTxuyYfIvtt1p2CIpNQ970o5pTg6diQ=";
};
build-system = [ setuptools-scm ];
propagatedBuildInputs = [
libpysal
numpy
scipy
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "inequality" ];
meta = {
description = "Spatial inequality analysis";
homepage = "https://github.com/pysal/inequality";
license = lib.licenses.bsd3;
maintainers = lib.teams.geospatial.members;
};
}

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

@ -5787,6 +5787,8 @@ self: super: with self; {
indexed-zstd = callPackage ../development/python-modules/indexed-zstd { inherit (pkgs) zstd; };
inequality = callPackage ../development/python-modules/inequality { };
infinity = callPackage ../development/python-modules/infinity { };
inflect = callPackage ../development/python-modules/inflect { };
@ -7677,6 +7679,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 { };