From 4a1c0cdba8b5ad8e9b87e5ecfecc816a3ad30658 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 25 May 2021 17:38:18 +0200 Subject: [PATCH 1/2] python3Packages.frozenlist: init at 1.1.1 --- .../python-modules/frozenlist/default.nix | 46 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 48 insertions(+) create mode 100644 pkgs/development/python-modules/frozenlist/default.nix diff --git a/pkgs/development/python-modules/frozenlist/default.nix b/pkgs/development/python-modules/frozenlist/default.nix new file mode 100644 index 00000000000..e3def747f03 --- /dev/null +++ b/pkgs/development/python-modules/frozenlist/default.nix @@ -0,0 +1,46 @@ +{ lib +, buildPythonPackage +, cython +, fetchFromGitHub +, pytestCheckHook +, pythonOlder +}: + +buildPythonPackage rec { + pname = "frozenlist"; + version = "1.1.1"; + disabled = pythonOlder "3.6"; + + src = fetchFromGitHub { + owner = "aio-libs"; + repo = pname; + rev = "v${version}"; + sha256 = "07z33vid7s8fjwvybyn8357yvs0f6nlhizv1l3qj1bczi3jbdkbh"; + }; + + nativeBuildInputs = [ + cython + ]; + + checkInputs = [ + pytestCheckHook + ]; + + postPatch = '' + substituteInPlace pytest.ini \ + --replace "--cov=frozenlist" "" + ''; + + preBuild = '' + cython frozenlist/_frozenlist.pyx + ''; + + pythonImportsCheck = [ "frozenlist" ]; + + meta = with lib; { + description = "Python module for list-like structure"; + homepage = "https://github.com/aio-libs/frozenlist"; + license = with licenses; [ asl20 ]; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 38ab293c872..13a477b8490 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2619,6 +2619,8 @@ in { frozendict = callPackage ../development/python-modules/frozendict { }; + frozenlist = callPackage ../development/python-modules/frozenlist { }; + fs = callPackage ../development/python-modules/fs { }; fs-s3fs = callPackage ../development/python-modules/fs-s3fs { }; From 0ddb62fda63d08b449090555f36ae0a04f1d6546 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 25 May 2021 18:40:16 +0200 Subject: [PATCH 2/2] python3Packages.aiosignal: init at 1.1.1 --- .../python-modules/aiosignal/default.nix | 44 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 46 insertions(+) create mode 100644 pkgs/development/python-modules/aiosignal/default.nix diff --git a/pkgs/development/python-modules/aiosignal/default.nix b/pkgs/development/python-modules/aiosignal/default.nix new file mode 100644 index 00000000000..9b9ef3b12ae --- /dev/null +++ b/pkgs/development/python-modules/aiosignal/default.nix @@ -0,0 +1,44 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, frozenlist +, pytest-asyncio +, pytestCheckHook +, pythonOlder +}: + +buildPythonPackage rec { + pname = "aiosignal"; + version = "1.1.1"; + disabled = pythonOlder "3.6"; + + src = fetchFromGitHub { + owner = "aio-libs"; + repo = pname; + rev = "v${version}"; + sha256 = "0a9md2dy83qwg2an57nqrzp9nb7krq27y9zz0f7qxcrv0xd42djy"; + }; + + propagatedBuildInputs = [ + frozenlist + ]; + + checkInputs = [ + pytest-asyncio + pytestCheckHook + ]; + + postPatch = '' + substituteInPlace pytest.ini \ + --replace "--cov=aiosignal" "" + ''; + + pythonImportsCheck = [ "aiosignal" ]; + + meta = with lib; { + description = "Python list of registered asynchronous callbacks"; + homepage = "https://github.com/aio-libs/aiosignal"; + license = with licenses; [ asl20 ]; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 13a477b8490..d1e6b0af990 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -333,6 +333,8 @@ in { aioshelly = callPackage ../development/python-modules/aioshelly { }; + aiosignal = callPackage ../development/python-modules/aiosignal { }; + aiosmb = callPackage ../development/python-modules/aiosmb { }; aiosmtpd = callPackage ../development/python-modules/aiosmtpd { };