5e7c2d6cef
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
45 lines
830 B
Nix
45 lines
830 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, cryptography
|
|
, fetchFromGitHub
|
|
, getmac
|
|
, pythonOlder
|
|
, requests
|
|
, zeroconf
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "boschshcpy";
|
|
version = "0.2.72";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "tschamm";
|
|
repo = pname;
|
|
rev = version;
|
|
hash = "sha256-Re+OKgarLe4n54nZyBm0EtzMHcGKqDY6r+7rtvRSqsg=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|