Skip to content

Commit

Permalink
python3Packages.steam: init at 1.4.4
Browse files Browse the repository at this point in the history
  • Loading branch information
jackwilsdon committed Oct 7, 2024
1 parent b87348c commit 779b7b7
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 0 deletions.
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 ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14988,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

0 comments on commit 779b7b7

Please sign in to comment.