Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

steamctl: init at 0.9.5 #347186

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9477,6 +9477,11 @@
githubId = 7558482;
name = "Jack Gerrits";
};
jackwilsdon = {
name = "Jack Wilsdon";
github = "jackwilsdon";
githubId = 1843197;
};
jacobkoziej = {
name = "Jacob Koziej";
email = "[email protected]";
Expand Down
44 changes: 44 additions & 0 deletions pkgs/by-name/st/steamctl/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
fetchFromGitHub,
lib,
python3,
}:
python3.pkgs.buildPythonApplication rec {
pname = "steamctl";
version = "0.9.5";

src = fetchFromGitHub {
owner = "ValvePython";
repo = "steamctl";
rev = "refs/tags/v${version}";
hash = "sha256-reNch5MP31MxyaeKUlANfizOXZXjtIDeSM1kptsWqkc=";
};

build-system = [ python3.pkgs.setuptools ];

dependencies = with python3.pkgs; [
appdirs
argcomplete
arrow
beautifulsoup4
pyqrcode
steam
tqdm
vpk
];

meta = {
description = "Take control of Steam from your terminal";
longDescription = ''
steamctl is an open-source CLI utility similar to steamcmd.

It provides access to a number of Steam features and data from the command line.

While it is possible to download apps and content from Steam, steamctl is not a game launcher.
'';
homepage = "https://github.com/ValvePython/steamctl";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ jackwilsdon ];
mainProgram = "steamctl";
};
}
31 changes: 31 additions & 0 deletions pkgs/development/python-modules/gevent-eventemitter/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
buildPythonPackage,
fetchFromGitHub,
gevent,
lib,
setuptools,
}:
buildPythonPackage rec {
pname = "gevent-eventemitter";
version = "2.1";

src = fetchFromGitHub {
owner = "rossengeorgiev";
repo = "gevent-eventemitter";
rev = "refs/tags/v${version}";
hash = "sha256-aW4OsQi3N5yAMdbTd8rxbb2qYMfFJBR4WQFIXvxpiMw=";
};

build-system = [ setuptools ];

dependencies = [ gevent ];

pythonImportsCheck = [ "eventemitter" ];

meta = {
description = "EventEmitter using gevent";
homepage = "https://github.com/rossengeorgiev/gevent-eventemitter";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ jackwilsdon ];
};
}
59 changes: 59 additions & 0 deletions pkgs/development/python-modules/steam/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
{
buildPythonPackage,
cachetools,
fetchFromGitHub,
fetchpatch,
gevent,
gevent-eventemitter,
lib,
protobuf,
pycryptodomex,
requests,
setuptools,
six,
vdf,
}:
buildPythonPackage rec {
pname = "steam";
version = "1.4.4";

src = fetchFromGitHub {
owner = "ValvePython";
repo = "steam";
rev = "refs/tags/v${version}";
hash = "sha256-OY04GsX3KMPvpsQl8sUurzFyJu+JKpES8B0iD6Z5uyw=";
};

patches = [
# Fixes upstream bug.
#
# https://github.com/ValvePython/steam/pull/437
(fetchpatch {
url = "https://github.com/ValvePython/steam/commit/783f023236b2686afbcd2ad124051dc51c20aff0.patch";
hash = "sha256-9p52Kjc1TWmFLMr7dMuU6n1MeVC8g0G6hYNgERbMoAM=";
})
];

build-system = [ setuptools ];

dependencies = [
cachetools
gevent
gevent-eventemitter
protobuf
pycryptodomex
requests
six
vdf
];

pythonImportsCheck = [ "steam" ];

meta = {
description = "A Python package for interacting with Steam";
homepage = "https://github.com/ValvePython/steam";
changelog = "https://github.com/ValvePython/steam/blob/master/CHANGES.md";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ jackwilsdon ];
};
}
4 changes: 4 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5008,6 +5008,8 @@ self: super: with self; {

geventhttpclient = callPackage ../development/python-modules/geventhttpclient { };

gevent-eventemitter = callPackage ../development/python-modules/gevent-eventemitter { };

gevent-socketio = callPackage ../development/python-modules/gevent-socketio { };

gevent-websocket = callPackage ../development/python-modules/gevent-websocket { };
Expand Down Expand Up @@ -14986,6 +14988,8 @@ self: super: with self; {

stdlibs = callPackage ../development/python-modules/stdlibs { };

steam = callPackage ../development/python-modules/steam { };

steamodd = callPackage ../development/python-modules/steamodd { };

steamship = callPackage ../development/python-modules/steamship { };
Expand Down