depot/third_party/nixpkgs/pkgs/development/python-modules/fjaraskupan/default.nix
Default email b450903751 Project import generated by Copybara.
GitOrigin-RevId: 74a1793c659d09d7cf738005308b1f86c90cb59b
2022-09-09 16:08:57 +02:00

43 lines
781 B
Nix

{ lib
, bleak
, buildPythonPackage
, fetchFromGitHub
, pytest-mock
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "fjaraskupan";
version = "2.0.0";
format = "setuptools";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "elupus";
repo = pname;
rev = version;
hash = "sha256-ohadGQxtW8YcSDIF7xZhy84xu0Vi5yj/QEVi8WRRBSI=";
};
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 ];
};
}