depot/third_party/nixpkgs/pkgs/development/python-modules/linear-garage-door/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

52 lines
1 KiB
Nix

{
lib,
aiohttp,
buildPythonPackage,
dnspython,
fetchFromGitHub,
poetry-core,
pythonOlder,
tenacity,
}:
buildPythonPackage rec {
pname = "linear-garage-door";
version = "0.2.9";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "IceBotYT";
repo = "linear-garage-door";
rev = "refs/tags/${version}";
hash = "sha256-hWWJgZnEItYaSxka7zBHPeVlTEiOqRnA2vg6/MvpJGE=";
};
postPatch = ''
sed -i pyproject.toml \
-e "/--cov/d" \
-e "/--no-cov/d"
'';
nativeBuildInputs = [ poetry-core ];
propagatedBuildInputs = [
aiohttp
dnspython
tenacity
];
# Module doesn't have tests
doCheck = false;
pythonImportsCheck = [ "linear_garage_door" ];
meta = with lib; {
description = "Control Linear Garage Doors with Python";
homepage = "https://github.com/IceBotYT/linear-garage-door";
changelog = "https://github.com/IceBotYT/linear-garage-door/blob/${version}/CHANGELOG.md";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}