git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #150604 from dotlambda/ircrobots-0.4.6
commitbdfb8cf9715b7a88a64144bd925772a61c60cfcb authorMartin Weinelt <mweinelt@users.noreply.github.com> dateTue 14 Dec 2021, 00:29 (5 years ago) parentcfdb99f5b8fd52
3 files changed+36−2
pkgs/development/python-modules/asyncio-rlock/default.nix+28 pkgs/development/python-modules/ircrobots/default.nix+6−2 pkgs/top-level/python-packages.nix+2
pkgs/development/python-modules/asyncio-rlock/default.nixnew file+28
@@ -0,0 +1,28 @@
1+{ lib
2+, buildPythonPackage
3+, fetchPypi
4+, pytestCheckHook
5+}:
6+
7+buildPythonPackage rec {
8+ pname = "asyncio-rlock";
9+ version = "0.1.0";
10+
11+ src = fetchPypi {
12+ pname = "asyncio_rlock";
13+ inherit version;
14+ sha256 = "7e29824331619873e10d5d99dcc46d7b8f196c4a11b203f4eeccc0c091039d43";
15+ };
16+
17+ # no tests on PyPI, no tags on GitLab
18+ doCheck = false;
19+
20+ pythonImportsCheck = [ "asyncio_rlock" ];
21+
22+ meta = with lib; {
23+ description = "Rlock like in threading module but for asyncio";
24+ homepage = "https://gitlab.com/heckad/asyncio_rlock";
25+ license = licenses.mit;
26+ maintainers = with maintainers; [ dotlambda ];
27+ };
28+}
pkgs/development/python-modules/ircrobots/default.nix+6−2
@@ -3,6 +3,7 @@
33, fetchFromGitHub
44, pythonOlder
55, anyio
6+, asyncio-rlock
67, asyncio-throttle
78, dataclasses
89, ircstates
@@ -13,23 +14,26 @@
1314
1415buildPythonPackage rec {
1516 pname = "ircrobots";
16− version = "0.3.8";
17+ version = "0.4.6";
1718 disabled = pythonOlder "3.6";
1819
1920 src = fetchFromGitHub {
2021 owner = "jesopo";
2122 repo = pname;
2223 rev = "v${version}";
23− sha256 = "06q86dqllxvi3nssfplmjk9yxaybighwh87lrxfpfhl8yy4z68jz";
24+ sha256 = "sha256-+BrS1+ZkgwT/qvqD0PwRZi2LF+31biS738SzKH1dy7w=";
2425 };
2526
2627 postPatch = ''
2728 # too specific pins https://github.com/jesopo/ircrobots/issues/3
2829 sed -iE 's/anyio.*/anyio/' requirements.txt
30+ sed -iE 's/ircstates.*/ircstates/' requirements.txt
31+ sed -iE 's/async_timeout.*/async_timeout/' requirements.txt
2932 '';
3033
3134 propagatedBuildInputs = [
3235 anyio
36+ asyncio-rlock
3337 asyncio-throttle
3438 ircstates
3539 async_stagger
pkgs/top-level/python-packages.nix+2
@@ -671,6 +671,8 @@ in {
671671
672672 asyncio-nats-client = callPackage ../development/python-modules/asyncio-nats-client { };
673673
674+ asyncio-rlock = callPackage ../development/python-modules/asyncio-rlock { };
675+
674676 asyncmy = callPackage ../development/python-modules/asyncmy { };
675677
676678 asyncio-throttle = callPackage ../development/python-modules/asyncio-throttle { };