blob: 3f0ca9fbd483b7686066b4c57fe88c399319572c (
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
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
geojson,
pysocks,
requests,
setuptools,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "pyowm";
version = "3.5.0";
pyproject = true;
src = fetchFromGitHub {
owner = "csparpa";
repo = "pyowm";
tag = version;
hash = "sha256-D1Cl3uWoEIUqA0R+bjRL2YgsVKj5inuBAVLJYluADg0=";
};
pythonRelaxDeps = [ "geojson" ];
build-system = [ setuptools ];
dependencies = [
geojson
pysocks
requests
setuptools
];
nativeCheckInputs = [ pytestCheckHook ];
# Run only tests which don't require network access
enabledTestPaths = [ "tests/unit" ];
pythonImportsCheck = [ "pyowm" ];
meta = {
description = "Python wrapper around the OpenWeatherMap web API";
homepage = "https://pyowm.readthedocs.io/";
changelog = "https://github.com/csparpa/pyowm/releases/tag/${version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};
}
|