mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 01:20:40 +00:00
48 lines
866 B
Nix
48 lines
866 B
Nix
{ lib
|
|
, aiohttp
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, freezegun
|
|
, metar
|
|
, pytest-aiohttp
|
|
, pytest-asyncio
|
|
, pytest-cov
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pynws";
|
|
version = "1.3.2";
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "MatthewFlamm";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "0d2x3vlm444aar4wbdg48xzpgwng5m7i2d7h1z0pb6c514747sd1";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
aiohttp
|
|
metar
|
|
];
|
|
|
|
checkInputs = [
|
|
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 ];
|
|
};
|
|
}
|