depot/third_party/nixpkgs/pkgs/development/python-modules/pylgnetcast/default.nix
Default email b5f92a349c Project import generated by Copybara.
GitOrigin-RevId: 7c9cc5a6e5d38010801741ac830a3f8fd667a7a0
2023-10-19 15:55:26 +02:00

40 lines
878 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, requests
, pythonOlder
}:
buildPythonPackage rec {
pname = "pylgnetcast";
version = "0.3.8";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "Drafteed";
repo = "python-lgnetcast";
rev = "refs/tags/v${version}";
hash = "sha256-UxZ4XM7n0Ryd4D967fXPTA4sqTrZwS8Tj/Q8kNGdk8Q=";
};
propagatedBuildInputs = [
requests
];
# Project has no tests
doCheck = false;
pythonImportsCheck = [
"pylgnetcast"
];
meta = with lib; {
description = "Python API client for the LG Smart TV running NetCast 3 or 4";
homepage = "https://github.com/Drafteed/python-lgnetcast";
changelog = "https://github.com/Drafteed/python-lgnetcast/releases/tag/v${version}";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}