29 lines
615 B
Nix
29 lines
615 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;
|
|
src-meta = selected.sources."python-steam";
|
|
version = 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
|
|
}
|