841d9c7fc1
GitOrigin-RevId: 3a8d7958a610cd3fec3a6f424480f91a1b259185
41 lines
800 B
Nix
41 lines
800 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, cryptography
|
|
, fetchFromGitHub
|
|
, getmac
|
|
, pythonOlder
|
|
, requests
|
|
, zeroconf
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "boschshcpy";
|
|
version = "0.2.19";
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "tschamm";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "sha256-HxLy3tGMn2KDfD37yKLoImpfXGoaoGB6VEanNu/WMnk=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|