git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #153311 from fabaff/bump-limnoria

python38Packages.limnoria: 2021.11.20 -> 2022.1.1

commit27086edc3b06dca5f1a0074e96d496f8c04f44ab authorFabian Affolter <fabian@affolter-engineering.ch> dateMon 3 Jan 2022, 13:45 (5 years ago) parentc9121620b2e3c4
1 file changed+44−10
pkgs/development/python-modules/limnoria/default.nix+44−10
pkgs/development/python-modules/limnoria/default.nix+44−10
@@ -1,27 +1,62 @@
11{ lib
22, buildPythonPackage
3+, chardet
4+, cryptography
5+, feedparser
36, fetchPypi
4−, isPy27
5−, git
7+, mock
8+, pysocks
9+, pytestCheckHook
10+, python-dateutil
11+, python-gnupg
12+, pythonOlder
13+, pytz
614}:
715
816buildPythonPackage rec {
917 pname = "limnoria";
10− version = "2021.11.20";
11− disabled = isPy27; # abandoned upstream
18+ version = "2022.1.1";
19+ format = "setuptools";
20+
21+ disabled = pythonOlder "3.6";
1222
1323 src = fetchPypi {
1424 inherit pname version;
15− sha256 = "da9c33497a09b4ed0cff6ed44954bbde6cb317edb68d56c73ef235128a802c11";
25+ hash = "sha256-tJqUsNRvSipuvOTfxJOFUCojrkRrrrzIgEYNShrTP8c=";
1626 };
1727
28+ propagatedBuildInputs = [
29+ chardet
30+ cryptography
31+ feedparser
32+ mock
33+ pysocks
34+ python-dateutil
35+ python-gnupg
36+ ] ++ lib.optionals (pythonOlder "3.9") [
37+ pytz
38+ ];
39+
40+ checkInputs = [
41+ pytestCheckHook
42+ ];
43+
1844 postPatch = ''
19− sed -i 's/version=version/version="${version}"/' setup.py
45+ substituteInPlace setup.py \
46+ --replace "version=version" 'version="${version}"'
2047 '';
21− buildInputs = [ git ];
2248
23− # cannot be imported
24− doCheck = false;
49+ checkPhase = ''
50+ runHook preCheck
51+ export PATH="$PATH:$out/bin";
52+ supybot-test test -v --no-network
53+ runHook postCheck
54+ '';
55+
56+ pythonImportsCheck = [
57+ # Uses the same names as Supybot
58+ "supybot"
59+ ];
2560
2661 meta = with lib; {
2762 description = "A modified version of Supybot, an IRC bot";
@@ -29,5 +64,4 @@ buildPythonPackage rec {
2964 license = licenses.bsd3;
3065 maintainers = with maintainers; [ goibhniu ];
3166 };
32−
3367}