pleroma-bot: 0.8.6 -> 1.2.0 (and modernize) (#543975)
This commit is contained in:
@@ -8,32 +8,53 @@
|
||||
requests-oauthlib,
|
||||
requests,
|
||||
pyaml,
|
||||
setuptools,
|
||||
feedparser,
|
||||
beautifulsoup4,
|
||||
tqdm,
|
||||
python,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
buildPythonPackage (finalAttrs: {
|
||||
pname = "pleroma-bot";
|
||||
version = "0.8.6";
|
||||
format = "setuptools";
|
||||
version = "1.2.0";
|
||||
pyproject = true;
|
||||
build-system = [ setuptools ];
|
||||
__structuredAttrs = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "robertoszek";
|
||||
repo = "pleroma-bot";
|
||||
rev = version;
|
||||
hash = "sha256-vJxblpf3NMSyYMHeWG7vHP5AeluTtMtVxOsHgvGDHeA=";
|
||||
tag = finalAttrs.version;
|
||||
hash = "sha256-my42szvkiUg6vGG6yGjDqN5LlDaertj+yA/pIcjdaLk=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
dependencies = [
|
||||
pyaml
|
||||
requests
|
||||
requests-oauthlib
|
||||
oauthlib
|
||||
feedparser
|
||||
beautifulsoup4
|
||||
tqdm
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace pleroma_bot/tests/test_{exceptions,logger}.py --replace-fail 'return' 'assert'
|
||||
'';
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
requests-mock
|
||||
];
|
||||
|
||||
disabledTestPaths = [
|
||||
# Tries to connect to api.twitter.com
|
||||
"pleroma_bot/tests/test_run.py::test_tweet_order"
|
||||
# Tries to connect to api.twitter.com and pbs.twimg.com
|
||||
"pleroma_bot/tests/test_run.py::test_main"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "pleroma_bot" ];
|
||||
|
||||
meta = {
|
||||
@@ -42,5 +63,6 @@ buildPythonPackage rec {
|
||||
homepage = "https://robertoszek.github.io/pleroma-bot/";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ robertoszek ];
|
||||
broken = python.pythonAtLeast "3.15";
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user