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

40 lines
879 B
Nix

{
lib,
aiohttp,
buildPythonPackage,
fetchFromGitHub,
poetry-core,
pythonOlder,
}:
buildPythonPackage rec {
pname = "pybravia";
version = "0.3.4";
format = "pyproject";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "Drafteed";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-1LfYEVclRneU3eD52kvzjLYyGdzYSWVDQ5EADOviglw=";
};
nativeBuildInputs = [ poetry-core ];
propagatedBuildInputs = [ aiohttp ];
# Module has no tests
doCheck = false;
pythonImportsCheck = [ "pybravia" ];
meta = with lib; {
description = "Library for remote control of Sony Bravia TVs 2013 and newer";
homepage = "https://github.com/Drafteed/pybravia";
changelog = "https://github.com/Drafteed/pybravia/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}