From 8bda373c1dbb5188458dce974789cfa3e1bf3412 Mon Sep 17 00:00:00 2001 From: Milan Hauth Date: Wed, 29 Nov 2023 21:31:14 +0100 Subject: [PATCH] python3Packages.cdp-socket: init at 1.1.2 --- default.nix | 2 ++ pkgs/python3/pkgs/cdp-socket/cdp-socket.nix | 39 +++++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 pkgs/python3/pkgs/cdp-socket/cdp-socket.nix diff --git a/default.nix b/default.nix index a09b057..d564267 100644 --- a/default.nix +++ b/default.nix @@ -290,6 +290,8 @@ pkgs.lib.makeScope pkgs.newScope (self: let inherit (self) callPackage; in rec { speedtest-cli = callPackage ./pkgs/python3/pkgs/speedtest-cli/speedtest-cli.nix { }; + cdp-socket = callPackage ./pkgs/python3/pkgs/cdp-socket/cdp-socket.nix { }; + #}))); # python3.pkgs #}))); # python3 diff --git a/pkgs/python3/pkgs/cdp-socket/cdp-socket.nix b/pkgs/python3/pkgs/cdp-socket/cdp-socket.nix new file mode 100644 index 0000000..fa0c9bc --- /dev/null +++ b/pkgs/python3/pkgs/cdp-socket/cdp-socket.nix @@ -0,0 +1,39 @@ +{ lib +, python3 +, fetchFromGitHub +}: + +python3.pkgs.buildPythonApplication rec { + pname = "cdp-socket"; + version = "1.1.2"; + pyproject = true; + + src = fetchFromGitHub { + owner = "kaliiiiiiiiii"; + repo = "CDP-Socket"; + rev = "df8ca70a5d1960fe792ab9ddd9f71b53a44187cf"; + hash = "sha256-wBmgg/qp7VA3cSLP4wjhMlMtWj9IXry7c+pntzW+yzQ="; + }; + + nativeBuildInputs = [ + python3.pkgs.setuptools + python3.pkgs.wheel + ]; + + propagatedBuildInputs = with python3.pkgs; [ + aiohttp + setuptools + twine + websockets + ]; + + pythonImportsCheck = [ "cdp_socket" ]; + + meta = with lib; { + description = "Socket for handling chrome-developer-protocol connections"; + homepage = "https://github.com/kaliiiiiiiiii/CDP-Socket"; + license = licenses.unfree; # FIXME: nix-init did not found a license + maintainers = with maintainers; [ ]; + mainProgram = "cdp-socket"; + }; +}