depot/third_party/nixpkgs/pkgs/development/python-modules/whirlpool-sixth-sense/default.nix
Default email a0cb138ada Project import generated by Copybara.
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
2023-02-02 18:25:31 +00:00

50 lines
1,000 B
Nix

{ lib
, aioconsole
, aiohttp
, buildPythonPackage
, fetchFromGitHub
, pytest-asyncio
, pytest-mock
, pytestCheckHook
, pythonOlder
, websockets
}:
buildPythonPackage rec {
pname = "whirlpool-sixth-sense";
version = "0.18.2";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "abmantis";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-6vmevL/VDuBnsPeYxtBZkCi9SVuINpM6jVlNR1Y6AuA=";
};
propagatedBuildInputs = [
aioconsole
aiohttp
websockets
];
nativeCheckInputs = [
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 ];
};
}