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

43 lines
758 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, pythonOlder
, fetchPypi
, aiohttp
, pytest-aiohttp
, pytest-asyncio
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "pytomorrowio";
version = "0.3.5";
disabled = pythonOlder "3.9";
src = fetchPypi {
inherit pname version;
hash = "sha256-LFIQJJPqKlqLzEoX9ShfoASigPC5R+OWiW81VmjONe8=";
};
propagatedBuildInputs = [
aiohttp
];
checkInputs = [
pytest-aiohttp
pytest-asyncio
pytestCheckHook
];
pythonImportsCheck = [
"pytomorrowio"
];
meta = {
description = "Async Python package to access the Tomorrow.io API";
homepage = "https://github.com/raman325/pytomorrowio";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ dotlambda ];
};
}