depot/third_party/nixpkgs/pkgs/development/python-modules/pyairvisual/default.nix
Default email eefb417d14 Project import generated by Copybara.
GitOrigin-RevId: a52e974cff8fb80c427e0d55c01b3b8c770ccec4
2020-11-06 01:33:48 +01:00

55 lines
927 B
Nix

{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, poetry
, aiohttp
, numpy
, pysmb
, aresponses
, asynctest
, pytest-aiohttp
, pytest-asyncio
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "pyairvisual";
version = "5.0.4";
format = "pyproject";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "bachya";
repo = pname;
rev = version;
sha256 = "0z769xrb6w6bhqcq02sjryl1qyvk9dc1xfn06fc3mdqnrbr0xxj3";
};
nativeBuildInputs = [ poetry ];
propagatedBuildInputs = [
aiohttp
numpy
pysmb
];
checkInputs = [
aresponses
asynctest
pytest-aiohttp
pytest-asyncio
pytestCheckHook
];
pytestFlagsArray = [
"tests"
];
meta = with lib; {
description = "A simple, clean, well-tested Python library for interacting with AirVisual©";
license = licenses.mit;
homepage = "https://github.com/bachya/pyairvisual";
};
}