mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 23:43:30 +00:00
02dab4ab5c
Long term we should move everything over to `pyproject = true`, but in the mean time we can work towards deprecating the implicit `format` paremeter. cc https://github.com/NixOS/nixpkgs/issues/253154 cc @mweinelt @figsoda
49 lines
904 B
Nix
49 lines
904 B
Nix
{ lib
|
|
, aiohttp
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, freezegun
|
|
, metar
|
|
, pytest-aiohttp
|
|
, pytest-asyncio
|
|
, pytest-cov
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pynws";
|
|
version = "1.6.0";
|
|
format = "setuptools";
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "MatthewFlamm";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-x56kfnmdVV0Fc7XSI60rrtEl4k3uzpIdZxTofUbkUHU=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|