git.iko.soy/typeable/nixpkgs
on master help sign in
pythonPackages.aiojobs: init at 0.2.2
commit670c094af1a0c0ce83891e2f417658976bd9da35 authorRoger Qiu <roger@formbay.com.au> dateFri 14 Aug 2020, 21:29 (6 years ago) parent7db9fd1
2 files changed+47
pkgs/development/python-modules/aiojobs/default.nix+45 pkgs/top-level/python-packages.nix+2
pkgs/development/python-modules/aiojobs/default.nixnew file+45
@@ -0,0 +1,45 @@
1+{ buildPythonPackage
2+, fetchPypi
3+, isPy27
4+, aiohttp
5+, pytest
6+, pytest-aiohttp
7+, pygments
8+, lib
9+}:
10+
11+buildPythonPackage rec {
12+ pname = "aiojobs";
13+ version = "0.2.2";
14+ format = "flit";
15+ disabled = isPy27;
16+
17+ src = fetchPypi {
18+ inherit pname version;
19+ sha256 = "01a0msjh4w58fd7jplmblh0hwgpzwjs5xkgqz3d0p5yv3cykwjwf";
20+ };
21+
22+ nativeBuildInputs = [
23+ pygments
24+ ];
25+
26+ propagatedBuildInputs = [
27+ aiohttp
28+ ];
29+
30+ checkInputs = [
31+ pytest
32+ pytest-aiohttp
33+ ];
34+
35+ checkPhase = ''
36+ pytest tests
37+ '';
38+
39+ meta = with lib; {
40+ homepage = "https://github.com/aio-libs/aiojobs";
41+ description = "Jobs scheduler for managing background task (asyncio)";
42+ license = licenses.asl20;
43+ maintainers = with maintainers; [ cmcdragonkai ];
44+ };
45+}
pkgs/top-level/python-packages.nix+2
@@ -184,6 +184,8 @@ in {
184184
185185 aioamqp = callPackage ../development/python-modules/aioamqp { };
186186
187+ aiojobs = callPackage ../development/python-modules/aiojobs { };
188+
187189 aioredis = callPackage ../development/python-modules/aioredis { };
188190
189191 aiorun = callPackage ../development/python-modules/aiorun { };