From 56a850701bffd4b230e0cb3b4ff3690885491152 Mon Sep 17 00:00:00 2001 From: Frederik Rietdijk Date: Sun, 4 Jun 2017 12:24:32 +0200 Subject: [PATCH] python.pkgs.aiofiles: init at 0.3.1 --- .../python-modules/aiofiles/default.nix | 33 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 35 insertions(+) create mode 100644 pkgs/development/python-modules/aiofiles/default.nix diff --git a/pkgs/development/python-modules/aiofiles/default.nix b/pkgs/development/python-modules/aiofiles/default.nix new file mode 100644 index 000000000000..d1c6e279064e --- /dev/null +++ b/pkgs/development/python-modules/aiofiles/default.nix @@ -0,0 +1,33 @@ +{ lib +, buildPythonPackage +, fetchPypi +, isPy33 +, pythonOlder +, asyncio +, singledispatch +}: + +buildPythonPackage rec { + pname = "aiofiles"; + version = "0.3.1"; + name = "${pname}-${version}"; + + src = fetchPypi { + inherit pname version; + sha256 = "6c4936cea65175277183553dbc27d08b286a24ae5bd86f44fbe485dfcf77a14a"; + }; + + disabled = pythonOlder "3.3"; + + propagatedBuildInputs = lib.optionals isPy33 [ asyncio singledispatch ]; + + # No tests in archive + doCheck = false; + + meta = { + description = "File support for asyncio"; + homepage = https://github.com/Tinche/aiofiles; + license = with lib.licenses; [ asl20 ]; + maintainer = with lib.maintainers; [ fridh ]; + }; +} \ No newline at end of file diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 1c7ef8818045..0a1d8932972f 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -600,6 +600,8 @@ in { }; }; + aiofiles = callPackage ../development/python-modules/aiofiles { }; + aiohttp = buildPythonPackage rec { name = "aiohttp-${version}"; version = "1.1.6";