nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 aiohttp,
4 aioresponses,
5 buildPythonPackage,
6 fetchFromGitHub,
7 orjson,
8 pytest-asyncio,
9 pytest-error-for-skips,
10 pytestCheckHook,
11 setuptools,
12 syrupy,
13}:
14
15buildPythonPackage rec {
16 pname = "accuweather";
17 version = "5.0.0";
18 pyproject = true;
19
20 src = fetchFromGitHub {
21 owner = "bieniu";
22 repo = "accuweather";
23 tag = version;
24 hash = "sha256-EM0DpFvToPgI0PSFYlJsQQ16Uh1qd0ARp1ucvUD16ss=";
25 };
26
27 build-system = [ setuptools ];
28
29 dependencies = [
30 aiohttp
31 orjson
32 ];
33
34 nativeCheckInputs = [
35 aioresponses
36 pytest-asyncio
37 pytest-error-for-skips
38 pytestCheckHook
39 syrupy
40 ];
41
42 pythonImportsCheck = [ "accuweather" ];
43
44 meta = {
45 description = "Python wrapper for getting weather data from AccuWeather servers";
46 homepage = "https://github.com/bieniu/accuweather";
47 changelog = "https://github.com/bieniu/accuweather/releases/tag/${src.tag}";
48 license = lib.licenses.asl20;
49 maintainers = with lib.maintainers; [ jamiemagee ];
50 };
51}