depot/third_party/nixpkgs/pkgs/development/python-modules/pyairnow/default.nix

46 lines
896 B
Nix
Raw Normal View History

{ lib
, aiohttp
, aioresponses
, buildPythonPackage
, fetchFromGitHub
, pytest-aiohttp
, poetry-core
, pytest-asyncio
, pytest-cov
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "pyairnow";
version = "1.2.1";
format = "pyproject";
src = fetchFromGitHub {
owner = "asymworks";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-aab+3xrEiCjysa+DzXWelQwz8V2tr74y8v0NpDZiuTk=";
};
nativeBuildInputs = [ poetry-core ];
propagatedBuildInputs = [ aiohttp ];
nativeCheckInputs = [
aioresponses
pytest-asyncio
pytest-aiohttp
pytest-cov
pytestCheckHook
];
pythonImportsCheck = [ "pyairnow" ];
meta = with lib; {
description = "Python wrapper for EPA AirNow Air Quality API";
homepage = "https://github.com/asymworks/pyairnow";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}