turses: fix python3.7 support (#61984)
This commit is contained in:
parent
98c40b132d
commit
3a9cb10b2b
@ -1,9 +1,7 @@
|
|||||||
{ stdenv, fetchpatch, python36Packages }:
|
{ stdenv, fetchpatch, python3Packages }:
|
||||||
|
|
||||||
with stdenv.lib;
|
with stdenv.lib;
|
||||||
|
with python3Packages;
|
||||||
# Needs Python <3.7 for now, see https://github.com/louipc/turses/issues/4
|
|
||||||
with python36Packages;
|
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "turses";
|
pname = "turses";
|
||||||
@ -14,8 +12,6 @@ buildPythonPackage rec {
|
|||||||
sha256 = "15mkhm3b5ka42h8qph0mhh8izfc1200v7651c62k7ldcs50ib9j6";
|
sha256 = "15mkhm3b5ka42h8qph0mhh8izfc1200v7651c62k7ldcs50ib9j6";
|
||||||
};
|
};
|
||||||
|
|
||||||
disabled = ! python36Packages.pythonOlder "3.7";
|
|
||||||
|
|
||||||
checkInputs = [ mock pytest coverage tox ];
|
checkInputs = [ mock pytest coverage tox ];
|
||||||
propagatedBuildInputs = [ urwid tweepy future ];
|
propagatedBuildInputs = [ urwid tweepy future ];
|
||||||
|
|
||||||
@ -24,6 +20,11 @@ buildPythonPackage rec {
|
|||||||
url = "https://github.com/louipc/turses/commit/be0961b51f502d49fd9e2e5253ac130e543a31c7.patch";
|
url = "https://github.com/louipc/turses/commit/be0961b51f502d49fd9e2e5253ac130e543a31c7.patch";
|
||||||
sha256 = "17s1n0275mcj03vkf3n39dmc09niwv4y7ssrfk7k3vqx22kppzg3";
|
sha256 = "17s1n0275mcj03vkf3n39dmc09niwv4y7ssrfk7k3vqx22kppzg3";
|
||||||
})
|
})
|
||||||
|
# python 3.7+ support
|
||||||
|
(fetchpatch {
|
||||||
|
url = "https://github.com/booxter/turses/commit/e6e285eae50fc3d2042a476185fe60daef1e758e.patch";
|
||||||
|
sha256 = "0g2zsrny955viwgs2l6gpiiz8m67b5sgdcxkjmfimfvvih5sg79f";
|
||||||
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
|
Loading…
x
Reference in New Issue
Block a user