python3.pkgs.mastodon-py: 1.8.1 -> unstable-2023-06-24 (fixes build)

Tests on current version breaks. Checking the git log shows that there CI have been broken for a long time. Now it seems stable again
This commit is contained in:
Jörg Thalheim 2023-10-31 08:12:32 +01:00 committed by Jörg Thalheim
parent 2e54ca6a60
commit 9750e40bd2

View File

@ -14,25 +14,24 @@
, pytest-mock
, pytest-vcr
, requests-mock
, setuptools
, pytest-cov
}:
buildPythonPackage rec {
pname = "mastodon-py";
version = "1.8.1";
# tests are broken on last release, check after next release (> 1.8.1)
version = "unstable-2023-06-24";
format = "setuptools";
format = "pyproject";
src = fetchFromGitHub {
owner = "halcy";
repo = "Mastodon.py";
rev = "refs/tags/${version}";
hash = "sha256-r0AAUjd2MBfZANEpyztMNyaQTlGWvWoUVjJNO1eL218=";
rev = "cd86887d88bbc07de462d1e00a8fbc3d956c0151";
hash = "sha256-rJocFvtBPrSSny3lwENuRsQdAzi3u8b+SfDNGloniWI=";
};
postPatch = ''
sed -i '/^addopts/d' setup.cfg
'';
propagatedBuildInputs = [
blurhash
cryptography
@ -49,7 +48,9 @@ buildPythonPackage rec {
pytestCheckHook
pytest-mock
pytest-vcr
pytest-cov
requests-mock
setuptools
];
pythonImportsCheck = [ "mastodon" ];