f61cd259d4
GitOrigin-RevId: 82155ff501c7622cb2336646bb62f7624261f6d7
41 lines
785 B
Nix
41 lines
785 B
Nix
{ lib
|
|
, bleak
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pytest-mock
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "fjaraskupan";
|
|
version = "1.0.1";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "elupus";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "0r6l9cbl41ddg4mhw9g9rly9r7s70sscg1ysb99bsi8z6xml9za3";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
bleak
|
|
];
|
|
|
|
checkInputs = [
|
|
pytest-mock
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [ "fjaraskupan" ];
|
|
|
|
meta = with lib; {
|
|
description = "Python module for controlling Fjäråskupan kitchen fans";
|
|
homepage = "https://github.com/elupus/fjaraskupan";
|
|
license = with licenses; [ mit ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|