diff options
author | Alyssa Ross <hi@alyssa.is> | 2023-11-05 09:32:31 +0100 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2023-11-05 09:32:31 +0100 |
commit | 480416cc0d7e508b652c516af8d7342e3b1e59e3 (patch) | |
tree | d64d990b0d7cc1f80dca687b48563bc71628b55e /nixpkgs/pkgs/development/python-modules/mastodon-py/default.nix | |
parent | 05f40ff2bfe9c68198664c38d65816f677ac7ed4 (diff) | |
parent | fa804edfb7869c9fb230e174182a8a1a7e512c40 (diff) | |
download | nixlib-480416cc0d7e508b652c516af8d7342e3b1e59e3.tar nixlib-480416cc0d7e508b652c516af8d7342e3b1e59e3.tar.gz nixlib-480416cc0d7e508b652c516af8d7342e3b1e59e3.tar.bz2 nixlib-480416cc0d7e508b652c516af8d7342e3b1e59e3.tar.lz nixlib-480416cc0d7e508b652c516af8d7342e3b1e59e3.tar.xz nixlib-480416cc0d7e508b652c516af8d7342e3b1e59e3.tar.zst nixlib-480416cc0d7e508b652c516af8d7342e3b1e59e3.zip |
Merge branch 'nixos-unstable' of https://github.com/NixOS/nixpkgs into HEAD
Conflicts: nixpkgs/pkgs/servers/pr-tracker/default.nix
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/mastodon-py/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/mastodon-py/default.nix | 32 |
1 files changed, 25 insertions, 7 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/mastodon-py/default.nix b/nixpkgs/pkgs/development/python-modules/mastodon-py/default.nix index 64f7ac67fa05..5034346b9cfe 100644 --- a/nixpkgs/pkgs/development/python-modules/mastodon-py/default.nix +++ b/nixpkgs/pkgs/development/python-modules/mastodon-py/default.nix @@ -7,20 +7,19 @@ , http-ece , python-dateutil , python-magic -, pytz , requests , six , pytestCheckHook , pytest-mock , pytest-vcr , requests-mock +, setuptools }: buildPythonPackage rec { pname = "mastodon-py"; version = "1.8.1"; - - format = "setuptools"; + pyproject = true; src = fetchFromGitHub { owner = "halcy"; @@ -30,26 +29,45 @@ buildPythonPackage rec { }; postPatch = '' - sed -i '/^addopts/d' setup.cfg + sed -i '/addopts/d' setup.cfg ''; + nativeBuildInputs = [ + setuptools + ]; + propagatedBuildInputs = [ blurhash - cryptography decorator - http-ece python-dateutil python-magic - pytz requests six ]; + passthru.optional-dependencies = { + blurhash = [ + blurhash + ]; + webpush = [ + http-ece + cryptography + ]; + }; + nativeCheckInputs = [ pytestCheckHook pytest-mock pytest-vcr requests-mock + setuptools + ] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies); + + disabledTests = [ + "test_notifications_dismiss_pre_2_9_2" + "test_status_card_pre_2_9_2" + "test_stream_user_direct" + "test_stream_user_local" ]; pythonImportsCheck = [ "mastodon" ]; |