Something went wrong. Try again.
Nix Packages collection & NixOS github.com/NixOS/nixpkgs
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071{ lib, buildPythonPackage, fetchFromGitHub, blurhash, cryptography, decorator, graphemeu, http-ece, python-dateutil, python-magic, requests, pytestCheckHook, pytest-cov-stub, pytest-mock, pytest-vcr, requests-mock, setuptools,}:
buildPythonPackage rec { pname = "mastodon-py"; version = "2.2.2"; pyproject = true;
src = fetchFromGitHub { owner = "halcy"; repo = "Mastodon.py"; tag = "v${version}"; hash = "sha256-/1oOouJjCCBCymfl9ps3eMDs099cqRY5f4j2jMKKBfE="; };
build-system = [ setuptools ];
dependencies = [ blurhash decorator python-dateutil python-magic requests ];
optional-dependencies = { blurhash = [ blurhash ]; grapheme = [ graphemeu ]; webpush = [ http-ece cryptography ]; };
nativeCheckInputs = [ pytestCheckHook pytest-cov-stub pytest-mock pytest-vcr requests-mock ] ++ lib.concatAttrValues optional-dependencies;
pythonImportsCheck = [ "mastodon" ];
meta = { changelog = "https://github.com/halcy/Mastodon.py/blob/${src.tag}/CHANGELOG.rst"; description = "Python wrapper for the Mastodon API"; homepage = "https://github.com/halcy/Mastodon.py"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ dotlambda ]; };}