2021-10-01 09:20:50 +00:00
|
|
|
{ lib
|
|
|
|
, bleak
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pytest-mock
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "fjaraskupan";
|
2021-10-17 09:34:42 +00:00
|
|
|
version = "1.0.2";
|
2021-10-01 09:20:50 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "elupus";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-10-17 09:34:42 +00:00
|
|
|
sha256 = "sha256-nUrgV4keJpYRkKZE+udvmPdCW3O3YQTS1ye40IdA7vA=";
|
2021-10-01 09:20:50 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|