2023-07-31 23:07:46 +00:00
|
|
|
{ lib
|
2024-09-16 22:34:18 +00:00
|
|
|
, gitUpdater
|
2023-07-31 23:07:46 +00:00
|
|
|
, buildPythonApplication
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pythonOlder
|
|
|
|
, setuptools
|
|
|
|
, requests
|
|
|
|
, protobuf
|
|
|
|
, pycryptodome
|
|
|
|
, zstandard
|
|
|
|
, json5
|
|
|
|
, platformdirs
|
|
|
|
}:
|
|
|
|
|
2024-09-16 22:34:18 +00:00
|
|
|
let
|
2024-09-16 22:35:26 +00:00
|
|
|
version = "1.1.2";
|
2024-09-16 22:34:18 +00:00
|
|
|
in
|
|
|
|
buildPythonApplication {
|
2023-07-31 23:07:46 +00:00
|
|
|
pname = "nile";
|
2024-09-16 22:34:18 +00:00
|
|
|
inherit version;
|
2023-07-31 23:07:46 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "imLinguin";
|
|
|
|
repo = "nile";
|
2024-09-16 22:34:18 +00:00
|
|
|
rev = "v${version}";
|
2024-09-16 22:35:26 +00:00
|
|
|
hash = "sha256-/C4b8wPKWHGgiheuAN7AvU+KcD5aj5i6KzgFSdTIkNI=";
|
2023-07-31 23:07:46 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "nile";
|
2023-07-31 23:07:46 +00:00
|
|
|
homepage = "https://github.com/imLinguin/nile";
|
|
|
|
license = with licenses; [ gpl3 ];
|
|
|
|
maintainers = with maintainers; [ aidalgol ];
|
|
|
|
};
|
|
|
|
|
2024-09-16 22:34:18 +00:00
|
|
|
passthru.updateScript = gitUpdater {
|
|
|
|
rev-prefix = "v";
|
2024-02-07 17:03:32 +00:00
|
|
|
};
|
2023-07-31 23:07:46 +00:00
|
|
|
}
|