1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytestCheckHook,
6 pythonOlder,
7
8 geopandas,
9 inequality,
10 libpysal,
11 mapclassify,
12 networkx,
13 packaging,
14 pandas,
15 setuptools-scm,
16 shapely,
17 tqdm,
18}:
19
20buildPythonPackage rec {
21 pname = "momepy";
22 version = "0.10.0";
23 pyproject = true;
24 disabled = pythonOlder "3.11";
25
26 src = fetchFromGitHub {
27 owner = "pysal";
28 repo = "momepy";
29 tag = "v${version}";
30 hash = "sha256-9A1g2WSH1kIXO/BeF8ebcigshfcR8MrT2Ut5K/oxVM4=";
31 };
32
33 build-system = [ setuptools-scm ];
34
35 propagatedBuildInputs = [
36 geopandas
37 inequality
38 libpysal
39 mapclassify
40 networkx
41 packaging
42 pandas
43 shapely
44 tqdm
45 ];
46
47 nativeCheckInputs = [ pytestCheckHook ];
48
49 pythonImportsCheck = [ "momepy" ];
50
51 meta = {
52 description = "Urban Morphology Measuring Toolkit";
53 homepage = "https://github.com/pysal/momepy";
54 license = lib.licenses.bsd3;
55 teams = [ lib.teams.geospatial ];
56 };
57}