From c096cef82f0aeed0641a0ed2cb8b259498e045f1 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 3 Aug 2024 21:41:31 +0200 Subject: [PATCH 1/2] python312Packages.freenub: init at 0.1.0 Fork of pubnub https://github.com/bdraco/freenub --- .../python-modules/freenub/default.nix | 60 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 62 insertions(+) create mode 100644 pkgs/development/python-modules/freenub/default.nix diff --git a/pkgs/development/python-modules/freenub/default.nix b/pkgs/development/python-modules/freenub/default.nix new file mode 100644 index 000000000000..fec4d3180bc4 --- /dev/null +++ b/pkgs/development/python-modules/freenub/default.nix @@ -0,0 +1,60 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + aiohttp, + cbor2, + pycryptodomex, + busypie, + pytest-asyncio, + pytest-vcr, + pytestCheckHook, + requests, + pythonOlder, +}: + +buildPythonPackage rec { + pname = "freenub"; + version = "0.1.0"; + pyproject = true; + + disabled = pythonOlder "3.8"; + + src = fetchFromGitHub { + owner = "bdraco"; + repo = "freenub"; + rev = "refs/tags/v${version}"; + hash = "sha256-UkW/7KUQ4uCu3cxDSL+kw0gjKjs4KnmxRIOLVP4hwyA="; + }; + + postPatch = '' + sed -i "/--cov/d" pyproject.toml + ''; + + build-system = [ poetry-core ]; + + dependencies = [ + aiohttp + cbor2 + pycryptodomex + requests + ]; + + nativeCheckInputs = [ + busypie + pytest-asyncio + pytest-vcr + pytestCheckHook + ]; + + pythonImportsCheck = [ "pubnub" ]; + + meta = with lib; { + description = "Fork of pubnub"; + homepage = "https://github.com/bdraco/freenub"; + changelog = "https://github.com/bdraco/freenub/blob/${version}/CHANGELOG.md"; + license = licenses.mit; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 0fd0de0df609..f22815913e25 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -4597,6 +4597,8 @@ self: super: with self; { free-proxy = callPackage ../development/python-modules/free-proxy { }; + freenub = callPackage ../development/python-modules/freenub { }; + skia-pathops = callPackage ../development/python-modules/skia-pathops { inherit (pkgs.darwin.apple_sdk.frameworks) ApplicationServices OpenGL; }; From 0390b75d5b577e86b04b4631f48ac0248cb0522f Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 3 Aug 2024 21:42:08 +0200 Subject: [PATCH 2/2] python312Packages.yalexs: 6.4.2 -> 6.4.3 Diff: https://github.com/bdraco/yalexs/compare/refs/tags/v6.4.2...v6.4.3 Changelog: https://github.com/bdraco/yalexs/releases/tag/v6.4.3 --- pkgs/development/python-modules/yalexs/default.nix | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/yalexs/default.nix b/pkgs/development/python-modules/yalexs/default.nix index 0dfee73c80a3..ce2f51f08382 100644 --- a/pkgs/development/python-modules/yalexs/default.nix +++ b/pkgs/development/python-modules/yalexs/default.nix @@ -7,20 +7,20 @@ buildPythonPackage, ciso8601, fetchFromGitHub, - pubnub, + freenub, + poetry-core, pyjwt, pytestCheckHook, python-dateutil, pythonOlder, - requests, requests-mock, - poetry-core, + requests, typing-extensions, }: buildPythonPackage rec { pname = "yalexs"; - version = "6.4.2"; + version = "6.4.3"; pyproject = true; disabled = pythonOlder "3.9"; @@ -29,7 +29,7 @@ buildPythonPackage rec { owner = "bdraco"; repo = "yalexs"; rev = "refs/tags/v${version}"; - hash = "sha256-0EvQj+aKzpnehvI5IS3DBaJOp4wYpAWwkkaOLgwtdJs="; + hash = "sha256-LfK5xh1MBoWD3/Ae2Hxx0dOFoBkRZUqfudrleXluGzk="; }; postPatch = '' @@ -43,7 +43,7 @@ buildPythonPackage rec { aiofiles aiohttp ciso8601 - pubnub + freenub pyjwt python-dateutil requests