depot/third_party/nixpkgs/pkgs/development/python-modules/somweb/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

41 lines
889 B
Nix

{
lib,
aiohttp,
buildPythonPackage,
fetchFromGitHub,
requests,
setuptools,
}:
buildPythonPackage rec {
pname = "somweb";
version = "1.2.1";
pyproject = true;
src = fetchFromGitHub {
owner = "taarskog";
repo = "pySOMweb";
rev = "v${version}";
hash = "sha256-cLKEKDCMK7lCtbmj2KbhgJUCZpPnPI5tZvO5L+ey8qI=";
};
build-system = [ setuptools ];
dependencies = [
aiohttp
requests
];
pythonImportsCheck = [ "somweb" ];
doCheck = false; # no tests
meta = with lib; {
changelog = "https://github.com/taarskog/pySOMweb/releases/tag/v${version}";
description = "A client library to control garage door operators produced by SOMMER through their SOMweb device";
homepage = "https://github.com/taarskog/pysomweb";
license = licenses.mit;
maintainers = with maintainers; [ uvnikita ];
mainProgram = "somweb";
};
}