python3Packages.geopy: update test part and meta
This commit is contained in:
parent
cb0267fdf8
commit
6faf1402f3
@ -1,18 +1,16 @@
|
|||||||
{ lib, stdenv
|
{ lib
|
||||||
|
, async_generator
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, isPy3k
|
|
||||||
, geographiclib
|
, geographiclib
|
||||||
|
, isPy3k
|
||||||
|
, pytestCheckHook
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "geopy";
|
pname = "geopy";
|
||||||
version = "2.1.0";
|
version = "2.1.0";
|
||||||
|
|
||||||
disabled = !isPy3k; # only Python 3
|
disabled = !isPy3k; # only Python 3
|
||||||
doCheck = false; # Needs network access
|
|
||||||
|
|
||||||
propagatedBuildInputs = [ geographiclib ];
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = pname;
|
owner = pname;
|
||||||
@ -21,10 +19,24 @@ buildPythonPackage rec {
|
|||||||
sha256 = "0239a4achk49ngagb6aqy6cgzfwgbxir07vwi13ysbpx78y0l4g9";
|
sha256 = "0239a4achk49ngagb6aqy6cgzfwgbxir07vwi13ysbpx78y0l4g9";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
propagatedBuildInputs = [ geographiclib ];
|
||||||
|
|
||||||
|
checkInputs = [
|
||||||
|
async_generator
|
||||||
|
pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
|
# Exclude tests which perform API calls
|
||||||
|
pytestFlagsArray = [ "--ignore test/geocoders/" ];
|
||||||
|
pythonImportsCheck = [ "geopy" ];
|
||||||
|
|
||||||
|
__darwinAllowLocalNetworking = true;
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://github.com/geopy/geopy";
|
homepage = "https://github.com/geopy/geopy";
|
||||||
description = "Python Geocoding Toolbox";
|
description = "Python Geocoding Toolbox";
|
||||||
license = licenses.mit;
|
changelog = "https://github.com/geopy/geopy/releases/tag/${version}";
|
||||||
maintainers = with maintainers; [GuillaumeDesforges];
|
license = with licenses; [ mit ];
|
||||||
|
maintainers = with maintainers; [ GuillaumeDesforges ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user