28 lines
569 B
Nix
28 lines
569 B
Nix
{
|
|
lib,
|
|
namespace,
|
|
pkgs,
|
|
python3Packages,
|
|
...
|
|
}:
|
|
let
|
|
inherit (lib.trivial) importJSON;
|
|
inherit (lib.${namespace}) selectVariant mkAllSources;
|
|
|
|
versionSpec = importJSON ./version.json;
|
|
selected = selectVariant versionSpec null null;
|
|
sources = mkAllSources pkgs selected;
|
|
inherit (selected.variables) version;
|
|
in
|
|
python3Packages.buildPythonPackage {
|
|
pname = "steam";
|
|
inherit version;
|
|
pyproject = false;
|
|
|
|
src = sources."python-steam";
|
|
|
|
buildInputs = with python3Packages; [ setuptools ];
|
|
|
|
doCheck = false; # no tests in the PyPI tarball
|
|
}
|