1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, blurhash 5, cryptography 6, decorator 7, http-ece 8, python-dateutil 9, python_magic 10, pytz 11, requests 12, six 13, pytestCheckHook 14, pytest-mock 15, pytest-vcr 16, requests-mock 17}: 18 19buildPythonPackage rec { 20 pname = "mastodon-py"; 21 version = "1.5.1"; 22 23 src = fetchFromGitHub { 24 owner = "halcy"; 25 repo = "Mastodon.py"; 26 rev = version; 27 sha256 = "044iqydw69a6xpz2hdjv1fc6a9b7bqdpnh3b33xqbks9d2415ddm"; 28 }; 29 30 postPatch = '' 31 sed -i '/^addopts/d' setup.cfg 32 ''; 33 34 propagatedBuildInputs = [ 35 blurhash 36 cryptography 37 decorator 38 http-ece 39 python-dateutil 40 python_magic 41 pytz 42 requests 43 six 44 ]; 45 46 checkInputs = [ 47 pytestCheckHook 48 pytest-mock 49 pytest-vcr 50 requests-mock 51 ]; 52 53 pythonImportsCheck = [ "mastodon" ]; 54 55 meta = with lib; { 56 description = "Python wrapper for the Mastodon API"; 57 homepage = "https://github.com/halcy/Mastodon.py"; 58 license = licenses.mit; 59 maintainers = with maintainers; [ dotlambda ]; 60 }; 61}