Merge pull request #185667 from sikmir/osmnx

python3Packages.osmnx: 1.2.0 → 1.2.2
This commit is contained in:
Jonas Heinrich 2022-08-22 23:14:43 +02:00 committed by GitHub
commit f5357b55e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 2 deletions

View File

@ -1,6 +1,7 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, fetchpatch
, pythonOlder
, pytestCheckHook
, branca
@ -27,6 +28,14 @@ buildPythonPackage rec {
sha256 = "sha256-4UseN/3ojZdDUopwZLpHZEBon1qDDvCWfdzxodi/BeA=";
};
patches = [
# Fix test failures with latest branca
(fetchpatch {
url = "https://github.com/python-visualization/folium/commit/b410ab21cc46ec6756c2f755e5e81dcdca029c53.patch";
hash = "sha256-SVN4wKEep+VnAKnkJTf59rhnzHnbk6dV9XL5ntv4bog=";
})
];
SETUPTOOLS_SCM_PRETEND_VERSION = "v${version}";
nativeBuildInputs = [

View File

@ -3,14 +3,14 @@
buildPythonPackage rec {
pname = "osmnx";
version = "1.2.0";
version = "1.2.2";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "gboeing";
repo = pname;
rev = "v${version}";
sha256 = "sha256-HfgMmPEiKstMXV0rtul8QLxB1FY32Ws7IEonBB+qZOc=";
sha256 = "sha256-+dUv1QrUmCIOCyUyjYX1kJtZrPuSp3t9xz/sRV7ppgA=";
};
propagatedBuildInputs = [ geopandas matplotlib networkx numpy pandas requests Rtree shapely folium scikit-learn scipy gdal rasterio ];