555cd8a8f9
GitOrigin-RevId: 5633bcff0c6162b9e4b5f1264264611e950c8ec7
47 lines
905 B
Nix
47 lines
905 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
cryptography,
|
|
fetchFromGitHub,
|
|
getmac,
|
|
pythonOlder,
|
|
requests,
|
|
setuptools,
|
|
zeroconf,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "boschshcpy";
|
|
version = "0.2.95";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.10";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "tschamm";
|
|
repo = "boschshcpy";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-5kPC6UxqysJEHNWDoXhg7oo/hQSKICuqWmOdjlljoLs=";
|
|
};
|
|
|
|
nativeBuildInputs = [ setuptools ];
|
|
|
|
propagatedBuildInputs = [
|
|
cryptography
|
|
getmac
|
|
requests
|
|
zeroconf
|
|
];
|
|
|
|
# Project has no tests
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "boschshcpy" ];
|
|
|
|
meta = with lib; {
|
|
description = "Python module to work with the Bosch Smart Home Controller API";
|
|
homepage = "https://github.com/tschamm/boschshcpy";
|
|
license = with licenses; [ bsd3 ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|