4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
44 lines
951 B
Nix
44 lines
951 B
Nix
{ lib, stdenv
|
|
, bidict
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, mock
|
|
, pytestCheckHook
|
|
, python-engineio
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "python-socketio";
|
|
version = "5.0.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "miguelgrinberg";
|
|
repo = "python-socketio";
|
|
rev = "v${version}";
|
|
sha256 = "0mpqr53mrdzk9ki24y1inpsfvjlvm7pvxf8q4d52m80i5pcd5v5q";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
bidict
|
|
python-engineio
|
|
];
|
|
|
|
checkInputs = [
|
|
mock
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [ "socketio" ];
|
|
|
|
meta = with lib; {
|
|
description = "Python Socket.IO server and client";
|
|
longDescription = ''
|
|
Socket.IO is a lightweight transport protocol that enables real-time
|
|
bidirectional event-based communication between clients and a server.
|
|
'';
|
|
homepage = "https://github.com/miguelgrinberg/python-engineio/";
|
|
license = with licenses; [ mit ];
|
|
maintainers = with maintainers; [ mic92 ];
|
|
};
|
|
}
|