python3Packages.ircrobots: 0.3.8 -> 0.4.6

This commit is contained in:
Robert Schütz 2021-12-13 14:24:31 -08:00
parent bccef8531c
commit 5b8fd52912

View file

@ -3,6 +3,7 @@
, fetchFromGitHub , fetchFromGitHub
, pythonOlder , pythonOlder
, anyio , anyio
, asyncio-rlock
, asyncio-throttle , asyncio-throttle
, dataclasses , dataclasses
, ircstates , ircstates
@ -13,23 +14,26 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "ircrobots"; pname = "ircrobots";
version = "0.3.8"; version = "0.4.6";
disabled = pythonOlder "3.6"; disabled = pythonOlder "3.6";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "jesopo"; owner = "jesopo";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
sha256 = "06q86dqllxvi3nssfplmjk9yxaybighwh87lrxfpfhl8yy4z68jz"; sha256 = "sha256-+BrS1+ZkgwT/qvqD0PwRZi2LF+31biS738SzKH1dy7w=";
}; };
postPatch = '' postPatch = ''
# too specific pins https://github.com/jesopo/ircrobots/issues/3 # too specific pins https://github.com/jesopo/ircrobots/issues/3
sed -iE 's/anyio.*/anyio/' requirements.txt sed -iE 's/anyio.*/anyio/' requirements.txt
sed -iE 's/ircstates.*/ircstates/' requirements.txt
sed -iE 's/async_timeout.*/async_timeout/' requirements.txt
''; '';
propagatedBuildInputs = [ propagatedBuildInputs = [
anyio anyio
asyncio-rlock
asyncio-throttle asyncio-throttle
ircstates ircstates
async_stagger async_stagger