nixpkgs/pkgs/development/python-modules/fjaraskupan/default.nix
2022-11-05 13:29:18 +01:00

44 lines
796 B
Nix

{ lib
, bleak
, buildPythonPackage
, fetchFromGitHub
, pytest-mock
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "fjaraskupan";
version = "2.2.0";
format = "setuptools";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "elupus";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-0tNLwYckWF9GjhniEkiO+A+xDsUriUsMFZxG/FmUfps=";
};
propagatedBuildInputs = [
bleak
];
checkInputs = [
pytest-mock
pytestCheckHook
];
pythonImportsCheck = [
"fjaraskupan"
];
meta = with lib; {
description = "Module for controlling Fjäråskupan kitchen fans";
homepage = "https://github.com/elupus/fjaraskupan";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}