mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-21 05:04:00 +00:00
0215034f25
when they already rely on SRI hashes.
48 lines
869 B
Nix
48 lines
869 B
Nix
{ lib
|
|
, aiohttp
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, freezegun
|
|
, metar
|
|
, pytest-aiohttp
|
|
, pytest-asyncio
|
|
, pytest-cov
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pynws";
|
|
version = "1.4.1";
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "MatthewFlamm";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-hAUD92wlQZ0BZ++e/KdIOgTzavmUkrH3esDhI3mbl5Y=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
aiohttp
|
|
metar
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
freezegun
|
|
pytest-aiohttp
|
|
pytest-asyncio
|
|
pytest-cov
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [ "pynws" ];
|
|
|
|
meta = with lib; {
|
|
description = "Python library to retrieve data from NWS/NOAA";
|
|
homepage = "https://github.com/MatthewFlamm/pynws";
|
|
license = with licenses; [ mit ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|