depot/third_party/nixpkgs/pkgs/development/python-modules/pyairvisual/default.nix
Default email 170c3b4027 Project import generated by Copybara.
GitOrigin-RevId: 7cb76200088f45cd24a9aa67fd2f9657943d78a4
2021-05-03 22:48:10 +02:00

57 lines
1.1 KiB
Nix

{ lib
, aiohttp
, aresponses
, asynctest
, buildPythonPackage
, fetchFromGitHub
, numpy
, poetry-core
, pysmb
, pytest-aiohttp
, pytest-asyncio
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "pyairvisual";
version = "5.0.8";
format = "pyproject";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "bachya";
repo = pname;
rev = version;
sha256 = "sha256-QgMc0O5jk5LgKQg9ZMCZd3dNLv1typm1Rp2u8kSsqYk=";
};
nativeBuildInputs = [ poetry-core ];
propagatedBuildInputs = [
aiohttp
numpy
pysmb
];
checkInputs = [
aresponses
asynctest
pytest-aiohttp
pytest-asyncio
pytestCheckHook
];
disabledTestPaths = [ "examples/" ];
pythonImportsCheck = [ "pyairvisual" ];
meta = with lib; {
description = "Python library for interacting with AirVisual";
homepage = "https://github.com/bachya/pyairvisual";
changelog = "https://github.com/bachya/pyairvisual/releases/tag/${version}";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}