depot/third_party/nixpkgs/pkgs/development/python-modules/bring-api/default.nix
Default email 5ca88bfbb9 Project import generated by Copybara.
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
2024-07-31 10:19:44 +00:00

48 lines
983 B
Nix

{
lib,
aiohttp,
aioresponses,
buildPythonPackage,
fetchFromGitHub,
pytest-asyncio,
pytestCheckHook,
python-dotenv,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "bring-api";
version = "0.8.1";
pyproject = true;
disabled = pythonOlder "3.11";
src = fetchFromGitHub {
owner = "miaucl";
repo = "bring-api";
rev = "refs/tags/${version}";
hash = "sha256-w7DV+Idcg7OobFx+ECimngQKk0SCzd5F+DTg+WcnJwA=";
};
build-system = [ setuptools ];
dependencies = [ aiohttp ];
nativeCheckInputs = [
aioresponses
pytest-asyncio
pytestCheckHook
python-dotenv
];
pythonImportsCheck = [ "bring_api" ];
meta = with lib; {
description = "Module to access the Bring! shopping lists API";
homepage = "https://github.com/miaucl/bring-api";
changelog = "https://github.com/miaucl/bring-api/blob/${version}/CHANGELOG.md";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}