depot/third_party/nixpkgs/pkgs/development/python-modules/boschshcpy/default.nix
Default email e7ec2969af Project import generated by Copybara.
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
2024-01-13 09:15:51 +01:00

50 lines
906 B
Nix

{ lib
, buildPythonPackage
, cryptography
, fetchFromGitHub
, getmac
, pythonOlder
, requests
, setuptools
, zeroconf
}:
buildPythonPackage rec {
pname = "boschshcpy";
version = "0.2.88";
pyproject = true;
disabled = pythonOlder "3.10";
src = fetchFromGitHub {
owner = "tschamm";
repo = "boschshcpy";
rev = "refs/tags/${version}";
hash = "sha256-tyx7VJGsU9YYNJQy1mly0AgwKULZ1BWeRzz1BDgXrUU=";
};
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 ];
};
}