mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 01:13:05 +00:00
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:
parent
2e54ca6a60
commit
9750e40bd2
@ -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" ];
|
||||
|
Loading…
Reference in New Issue
Block a user