forked from mirrors/nixpkgs
python3Packages.geopy: 1.20 -> unstable-2019-11-10 (#73158)
This commit is contained in:
commit
c4ed79e977
|
@ -2631,6 +2631,12 @@
|
|||
githubId = 9705357;
|
||||
name = "Guillaume Bouchard";
|
||||
};
|
||||
GuillaumeDesforges = {
|
||||
email = "aceus02@gmail.com";
|
||||
github = "GuillaumeDesforges";
|
||||
githubId = 1882000;
|
||||
name = "Guillaume Desforges";
|
||||
};
|
||||
guillaumekoenig = {
|
||||
email = "guillaume.edward.koenig@gmail.com";
|
||||
github = "guillaumekoenig";
|
||||
|
|
28
pkgs/development/python-modules/geopy/2.nix
Normal file
28
pkgs/development/python-modules/geopy/2.nix
Normal file
|
@ -0,0 +1,28 @@
|
|||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, isPy27
|
||||
, geographiclib
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "geopy";
|
||||
version = "1.20.0";
|
||||
|
||||
disabled = !isPy27; # only Python 2.7
|
||||
doCheck = false; # Needs network access
|
||||
|
||||
propagatedBuildInputs = [ geographiclib ];
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "9419bc90ee6231590c4ae7acf1cf126cefbd0736942da7a6a1436946e80830e2";
|
||||
};
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = "https://github.com/geopy/geopy";
|
||||
description = "Python Geocoding Toolbox";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [GuillaumeDesforges];
|
||||
};
|
||||
}
|
|
@ -1,31 +1,30 @@
|
|||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, isPy27
|
||||
, mock
|
||||
, tox
|
||||
, pylint
|
||||
, fetchFromGitHub
|
||||
, isPy3k
|
||||
, geographiclib
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "geopy";
|
||||
version = "1.20.0";
|
||||
disabled = !isPy27;
|
||||
pname = "geopy-unstable";
|
||||
version = "2019-11-10";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "9419bc90ee6231590c4ae7acf1cf126cefbd0736942da7a6a1436946e80830e2";
|
||||
disabled = !isPy3k; # only Python 3
|
||||
doCheck = false; # Needs network access
|
||||
|
||||
propagatedBuildInputs = [ geographiclib ];
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "geopy";
|
||||
repo = "geopy";
|
||||
rev = "531b7de6126838a3e69370227aa7f2086ba52b89";
|
||||
sha256 = "07l1pblzg3hb3dbvd9rq8x78ly5dv0zxbc5hwskqil0bhv5v1p39";
|
||||
};
|
||||
|
||||
doCheck = false; # too much
|
||||
|
||||
buildInputs = [ mock tox pylint ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = "https://github.com/geopy/geopy";
|
||||
description = "Python Geocoding Toolbox";
|
||||
license = licenses.mit;
|
||||
broken = true;
|
||||
maintainers = with maintainers; [GuillaumeDesforges];
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
@ -4886,7 +4886,9 @@ in {
|
|||
|
||||
geographiclib = callPackage ../development/python-modules/geographiclib { };
|
||||
|
||||
geopy = callPackage ../development/python-modules/geopy { };
|
||||
geopy = if isPy3k
|
||||
then callPackage ../development/python-modules/geopy { }
|
||||
else callPackage ../development/python-modules/geopy/2.nix { };
|
||||
|
||||
django-haystack = callPackage ../development/python-modules/django-haystack { };
|
||||
|
||||
|
|
Loading…
Reference in a new issue