f34ce41345
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
62 lines
1.2 KiB
Nix
62 lines
1.2 KiB
Nix
{ lib
|
|
, unstableGitUpdater
|
|
, buildPythonApplication
|
|
, fetchFromGitHub
|
|
, pythonOlder
|
|
, setuptools
|
|
, requests
|
|
, protobuf
|
|
, pycryptodome
|
|
, zstandard
|
|
, json5
|
|
, platformdirs
|
|
, cacert
|
|
}:
|
|
|
|
buildPythonApplication rec {
|
|
pname = "nile";
|
|
version = "1.1.0-unstable-2024-07-15";
|
|
format = "pyproject";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "imLinguin";
|
|
repo = "nile";
|
|
rev = "55287cd81b7993e9ed86e5efb9d71566de02bd40";
|
|
hash = "sha256-sobhVggh8/BuKZWh39T0VJxg6kqADbC4AzeA32FQWN0=";
|
|
};
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
propagatedBuildInputs = [
|
|
setuptools
|
|
requests
|
|
protobuf
|
|
pycryptodome
|
|
zstandard
|
|
json5
|
|
platformdirs
|
|
];
|
|
|
|
pyprojectAppendix = ''
|
|
[tool.setuptools.packages.find]
|
|
include = ["nile*"]
|
|
'';
|
|
|
|
postPatch = ''
|
|
echo "$pyprojectAppendix" >> pyproject.toml
|
|
'';
|
|
|
|
pythonImportsCheck = [ "nile" ];
|
|
|
|
meta = with lib; {
|
|
description = "Unofficial Amazon Games client";
|
|
mainProgram = "nile";
|
|
homepage = "https://github.com/imLinguin/nile";
|
|
license = with licenses; [ gpl3 ];
|
|
maintainers = with maintainers; [ aidalgol ];
|
|
};
|
|
|
|
passthru.updateScript = unstableGitUpdater {
|
|
tagPrefix = "v";
|
|
};
|
|
}
|