Merge pull request #153311 from fabaff/bump-limnoria

python38Packages.limnoria: 2021.11.20 -> 2022.1.1
This commit is contained in:
Fabian Affolter 2022-01-03 13:45:11 +01:00 committed by GitHub
commit 27086edc3b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,27 +1,62 @@
{ lib
, buildPythonPackage
, chardet
, cryptography
, feedparser
, fetchPypi
, isPy27
, git
, mock
, pysocks
, pytestCheckHook
, python-dateutil
, python-gnupg
, pythonOlder
, pytz
}:
buildPythonPackage rec {
pname = "limnoria";
version = "2021.11.20";
disabled = isPy27; # abandoned upstream
version = "2022.1.1";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "da9c33497a09b4ed0cff6ed44954bbde6cb317edb68d56c73ef235128a802c11";
hash = "sha256-tJqUsNRvSipuvOTfxJOFUCojrkRrrrzIgEYNShrTP8c=";
};
postPatch = ''
sed -i 's/version=version/version="${version}"/' setup.py
'';
buildInputs = [ git ];
propagatedBuildInputs = [
chardet
cryptography
feedparser
mock
pysocks
python-dateutil
python-gnupg
] ++ lib.optionals (pythonOlder "3.9") [
pytz
];
# cannot be imported
doCheck = false;
checkInputs = [
pytestCheckHook
];
postPatch = ''
substituteInPlace setup.py \
--replace "version=version" 'version="${version}"'
'';
checkPhase = ''
runHook preCheck
export PATH="$PATH:$out/bin";
supybot-test test -v --no-network
runHook postCheck
'';
pythonImportsCheck = [
# Uses the same names as Supybot
"supybot"
];
meta = with lib; {
description = "A modified version of Supybot, an IRC bot";
@ -29,5 +64,4 @@ buildPythonPackage rec {
license = licenses.bsd3;
maintainers = with maintainers; [ goibhniu ];
};
}