blob: 96350f02b5994268106b2d36d1b55f968a88de1d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
{
lib,
stdenv,
buildPythonPackage,
fetchFromGitHub,
hatchling,
requests,
pytestCheckHook,
httpretty,
}:
buildPythonPackage rec {
pname = "pygeocodio";
version = "2.0.1";
pyproject = true;
src = fetchFromGitHub {
owner = "bennylope";
repo = "pygeocodio";
tag = "v${version}";
hash = "sha256-4jT/PX+jvJx81eaSXTsb/vLNbv4dNNVgeYrE7QwGlL8=";
};
build-system = [
hatchling
];
dependencies = [
requests
httpretty
];
pythonImportsCheck = [ "geocodio" ];
disabledTests = lib.optionals stdenv.hostPlatform.isDarwin [
"test_timeout"
];
nativeCheckInputs = [
pytestCheckHook
];
meta = {
description = "Python wrapper for the Geocodio geolocation service API";
downloadPage = "https://github.com/bennylope/pygeocodio/tree/master";
changelog = "https://github.com/bennylope/pygeocodio/blob/${src.tag}/HISTORY.rst";
homepage = "https://www.geocod.io/docs/#introduction";
license = with lib.licenses; [ bsd3 ];
maintainers = with lib.maintainers; [ ethancedwards8 ];
};
}
|