depot/third_party/nixpkgs/pkgs/development/python-modules/homeassistant-bring-api/default.nix
Default email c7cb07f092 Project import generated by Copybara.
GitOrigin-RevId: 1536926ef5621b09bba54035ae2bb6d806d72ac8
2024-02-29 21:09:43 +01:00

45 lines
966 B
Nix

{ lib
, aiohttp
, buildPythonPackage
, fetchFromGitHub
, setuptools
, pythonOlder
}:
buildPythonPackage rec {
pname = "homeassistant-bring-api";
version = "0.1.0";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "miaucl";
repo = "homeassistant-bring-api";
rev = "refs/tags/${version}";
hash = "sha256-EQ1Qv4B7axwERKvuMnLizpfA6jRNf/SyB6ktQ2BjFtM=";
};
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
aiohttp
];
# Module has no tests
doCheck = false;
pythonImportsCheck = [
"homeassistant_bring_api"
];
meta = with lib; {
description = "Module to access the Bring! shopping lists API with Home Assistant";
homepage = "https://github.com/miaucl/homeassistant-bring-api";
changelog = "https://github.com/miaucl/homeassistant-bring-api/blob/${version}/CHANGELOG.md";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}