evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / development / python-modules / pynws / default.nix
bloba923be9c4a33be9bd180536b7ee01ebe371f61af
2   lib,
3   aiohttp,
4   buildPythonPackage,
5   fetchFromGitHub,
6   freezegun,
7   metar,
8   pytest-aiohttp,
9   pytest-asyncio,
10   pytest-cov-stub,
11   pytestCheckHook,
12   pythonOlder,
13   setuptools,
14   setuptools-scm,
15   tenacity,
18 buildPythonPackage rec {
19   pname = "pynws";
20   version = "2.0.0";
21   pyproject = true;
23   disabled = pythonOlder "3.8";
25   src = fetchFromGitHub {
26     owner = "MatthewFlamm";
27     repo = "pynws";
28     rev = "refs/tags/v${version}";
29     hash = "sha256-eAXIlX/K7Cpq+aiPHiRGqhtSHQDtbHONYP0AjRW8JjY=";
30   };
32   build-system = [
33     setuptools
34     setuptools-scm
35   ];
37   dependencies = [
38     aiohttp
39     metar
40   ];
42   optional-dependencies.retry = [ tenacity ];
44   nativeCheckInputs = [
45     freezegun
46     pytest-aiohttp
47     pytest-asyncio
48     pytest-cov-stub
49     pytestCheckHook
50   ] ++ lib.flatten (lib.attrValues optional-dependencies);
52   pythonImportsCheck = [ "pynws" ];
54   meta = with lib; {
55     description = "Python library to retrieve data from NWS/NOAA";
56     homepage = "https://github.com/MatthewFlamm/pynws";
57     changelog = "https://github.com/MatthewFlamm/pynws/releases/tag/v${version}";
58     license = with licenses; [ mit ];
59     maintainers = with maintainers; [ fab ];
60   };