python3Packages.cdp-socket: init at 1.1.2

This commit is contained in:
Milan Hauth 2023-11-29 21:31:14 +01:00
parent 48516b4a68
commit 8bda373c1d
2 changed files with 41 additions and 0 deletions

View File

@ -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

View File

@ -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";
};
}