commit 3d8b202e878252a5b6df938201a1f63d95542d35
parent 6af1229723200b6e3270772c5f7375e53cbd4f38
Author: Nikolay Korotkiy <sikmir@disroot.org>
Date: Sun, 9 Jun 2024 11:28:45 +0400
Move inequality,momepy to nixpkgs
Diffstat:
3 files changed, 0 insertions(+), 85 deletions(-)
diff --git a/pkgs/default.nix b/pkgs/default.nix
@@ -200,7 +200,6 @@ lib.makeScope newScope (
go-pmtiles = callPackage ./geospatial/go-pmtiles { };
go-staticmaps = callPackage ./geospatial/go-staticmaps { };
hecate = callPackage ./geospatial/hecate { inherit (darwin.apple_sdk.frameworks) Security; };
- inequality = callPackage ./geospatial/inequality { };
kealib = callPackage ./geospatial/kealib { };
localtileserver = callPackage ./geospatial/localtileserver { };
mapsoft = callPackage ./geospatial/mapsoft { proj = pkgs.proj_7; };
@@ -209,7 +208,6 @@ lib.makeScope newScope (
mbutiles = callPackage ./geospatial/mbutiles { };
mobroute = callPackage ./geospatial/mobroute { };
mobsql = callPackage ./geospatial/mobsql { };
- momepy = callPackage ./geospatial/momepy { };
orbisgis = callPackage ./geospatial/orbisgis { jre = pkgs.jre8; };
ossim = callPackage ./geospatial/ossim { };
pipfile = callPackage ./geospatial/pipfile { };
diff --git a/pkgs/geospatial/inequality/default.nix b/pkgs/geospatial/inequality/default.nix
@@ -1,37 +0,0 @@
-{
- lib,
- fetchFromGitHub,
- python3Packages,
-}:
-
-python3Packages.buildPythonPackage rec {
- pname = "inequality";
- version = "1.0.1";
- pyproject = true;
-
- src = fetchFromGitHub {
- owner = "pysal";
- repo = "inequality";
- rev = "v${version}";
- hash = "sha256-dy1/KXnmIh5LnTxuyYfIvtt1p2CIpNQ970o5pTg6diQ=";
- };
-
- build-system = with python3Packages; [ setuptools-scm ];
-
- propagatedBuildInputs = with python3Packages; [
- libpysal
- numpy
- scipy
- ];
-
- nativeCheckInputs = with python3Packages; [ pytestCheckHook ];
-
- pythonImportsCheck = [ "inequality" ];
-
- meta = {
- description = "Spatial inequality analysis";
- inherit (src.meta) homepage;
- license = lib.licenses.bsd3;
- maintainers = [ lib.maintainers.sikmir ];
- };
-}
diff --git a/pkgs/geospatial/momepy/default.nix b/pkgs/geospatial/momepy/default.nix
@@ -1,46 +0,0 @@
-{
- lib,
- fetchFromGitHub,
- python3Packages,
- inequality,
-}:
-
-python3Packages.buildPythonPackage rec {
- pname = "momepy";
- version = "0.7.0";
- pyproject = true;
-
- src = fetchFromGitHub {
- owner = "pysal";
- repo = "momepy";
- rev = "v${version}";
- hash = "sha256-HVp2a0z+5fbfkNSxnTfZPCgG2SJMlKX/zso14M18mCk=";
- };
-
- build-system = with python3Packages; [ setuptools-scm ];
-
- propagatedBuildInputs = with python3Packages; [
- geopandas
- libpysal
- networkx
- packaging
- pandas
- shapely
- tqdm
- ];
-
- nativeCheckInputs = with python3Packages; [
- inequality
- mapclassify
- pytestCheckHook
- ];
-
- pythonImportsCheck = [ "momepy" ];
-
- meta = {
- description = "Urban Morphology Measuring Toolkit";
- inherit (src.meta) homepage;
- license = lib.licenses.bsd3;
- maintainers = [ lib.maintainers.sikmir ];
- };
-}