diff --git a/pkgs/development/python-modules/steampy/default.nix b/pkgs/development/python-modules/steampy/default.nix new file mode 100644 index 000000000000..dc3f48c16b93 --- /dev/null +++ b/pkgs/development/python-modules/steampy/default.nix @@ -0,0 +1,55 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + + # build-system + setuptools, + + # dependencies + beautifulsoup4, + requests, + rsa, + + # tests + pytestCheckHook, +}: + +buildPythonPackage (finalAttrs: { + pname = "steampy"; + version = "1.2.1"; + pyproject = true; + + src = fetchFromGitHub { + owner = "bukson"; + repo = "steampy"; + tag = finalAttrs.version; + hash = "sha256-dGcqJGRQ88vXy+x2U+ykutP4RnzTUqJlmhXmcr+4maE="; + }; + + build-system = [ setuptools ]; + + dependencies = [ + beautifulsoup4 + requests + rsa + ]; + + pythonImportsCheck = [ "steampy" ]; + + nativeCheckInputs = [ pytestCheckHook ]; + + disabledTestPaths = [ + # Require Steam credentials + "test/test_client.py" + "test/test_guard.py" + "test/test_market.py" + ]; + + meta = { + description = "Steam trading library"; + homepage = "https://github.com/bukson/steampy"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ artur-sannikov ]; + }; +}) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 4f08cf162988..71cde6210b1a 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -18452,6 +18452,8 @@ self: super: with self; { steamodd = callPackage ../development/python-modules/steamodd { }; + steampy = callPackage ../development/python-modules/steampy { }; + steamship = callPackage ../development/python-modules/steamship { }; steamworkspy = callPackage ../development/python-modules/steamworkspy { };