depot/third_party/nixpkgs/pkgs/development/python-modules/mapclassify/default.nix
Default email 7e47f3658e Project import generated by Copybara.
GitOrigin-RevId: 1925c603f17fc89f4c8f6bf6f631a802ad85d784
2024-09-26 11:04:55 +00:00

64 lines
1.2 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
pythonOlder,
geopandas,
libpysal,
matplotlib,
networkx,
numpy,
pandas,
scikit-learn,
scipy,
setuptools-scm,
}:
buildPythonPackage rec {
pname = "mapclassify";
version = "2.8.1";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "pysal";
repo = "mapclassify";
rev = "refs/tags/v${version}";
hash = "sha256-VClkMOR8P9sX3slVjJ2xYYLVnvZuOgVYZiCGrBxoZEc=";
};
build-system = [ setuptools-scm ];
propagatedBuildInputs = [
networkx
numpy
pandas
scikit-learn
scipy
];
nativeCheckInputs = [
pytestCheckHook
geopandas
libpysal
matplotlib
];
# requires network access
disabledTestPaths = [
"mapclassify/tests/test_greedy.py"
"mapclassify/tests/test_rgba.py"
];
pythonImportsCheck = [ "mapclassify" ];
meta = {
description = "Classification Schemes for Choropleth Maps";
homepage = "https://pysal.org/mapclassify/";
changelog = "https://github.com/pysal/mapclassify/releases/tag/v${version}";
license = lib.licenses.bsd3;
maintainers = lib.teams.geospatial.members;
};
}