depot/third_party/nixpkgs/pkgs/development/python-modules/whirlpool-sixth-sense/default.nix
Default email 7bc014aa9c Project import generated by Copybara.
GitOrigin-RevId: c97e777ff06fcb8d37dcdf5e21e9eff1f34f0e90
2022-09-11 12:47:08 -03:00

50 lines
994 B
Nix

{ lib
, aioconsole
, aiohttp
, buildPythonPackage
, fetchFromGitHub
, pytest-asyncio
, pytest-mock
, pytestCheckHook
, pythonOlder
, websockets
}:
buildPythonPackage rec {
pname = "whirlpool-sixth-sense";
version = "0.17.1";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "abmantis";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-M7V+JgbaFxrijaP8znZv8tOoHGVlQmTJIdiBXK6g8LM=";
};
propagatedBuildInputs = [
aioconsole
aiohttp
websockets
];
checkInputs = [
pytest-asyncio
pytest-mock
pytestCheckHook
];
# https://github.com/abmantis/whirlpool-sixth-sense/issues/15
doCheck = false;
pythonImportsCheck = [ "whirlpool" ];
meta = with lib; {
description = "Python library for Whirlpool 6th Sense appliances";
homepage = "https://github.com/abmantis/whirlpool-sixth-sense/";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}