nixpkgs/pkgs/development/python-modules/aiopinboard/default.nix
2024-03-21 08:33:09 +01:00

61 lines
1.0 KiB
Nix

{ lib
, aiohttp
, aresponses
, arrow
, buildPythonPackage
, certifi
, fetchFromGitHub
, frozenlist
, poetry-core
, pytest-aiohttp
, pytestCheckHook
, pythonOlder
, yarl
}:
buildPythonPackage rec {
pname = "aiopinboard";
version = "2024.01.0";
pyproject = true;
disabled = pythonOlder "3.10";
src = fetchFromGitHub {
owner = "bachya";
repo = "aiopinboard";
rev = "refs/tags/${version}";
hash = "sha256-/N9r17e0ZvPmcqW/XtRyAENKCGRzWqeOSKPpWHHYomg=";
};
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
aiohttp
arrow
certifi
frozenlist
yarl
];
nativeCheckInputs = [
aresponses
pytest-aiohttp
pytestCheckHook
];
pythonImportsCheck = [
"aiopinboard"
];
meta = with lib; {
description = "Library to interact with the Pinboard API";
homepage = "https://github.com/bachya/aiopinboard";
changelog = "https://github.com/bachya/aiopinboard/releases/tag/${version}";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}