2023-08-22 20:05:09 +00:00
|
|
|
{ lib
|
2024-01-02 11:29:13 +00:00
|
|
|
, unstableGitUpdater
|
2023-08-22 20:05:09 +00:00
|
|
|
, buildPythonApplication
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pythonOlder
|
|
|
|
, setuptools
|
|
|
|
, requests
|
|
|
|
, protobuf
|
|
|
|
, pycryptodome
|
|
|
|
, zstandard
|
|
|
|
, json5
|
|
|
|
, platformdirs
|
|
|
|
, cacert
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonApplication rec {
|
|
|
|
pname = "nile";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "1.1.0-unstable-2024-07-15";
|
2023-08-22 20:05:09 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "imLinguin";
|
|
|
|
repo = "nile";
|
2024-07-27 06:49:29 +00:00
|
|
|
rev = "55287cd81b7993e9ed86e5efb9d71566de02bd40";
|
|
|
|
hash = "sha256-sobhVggh8/BuKZWh39T0VJxg6kqADbC4AzeA32FQWN0=";
|
2023-08-22 20:05:09 +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-04-21 15:54:59 +00:00
|
|
|
mainProgram = "nile";
|
2023-08-22 20:05:09 +00:00
|
|
|
homepage = "https://github.com/imLinguin/nile";
|
|
|
|
license = with licenses; [ gpl3 ];
|
|
|
|
maintainers = with maintainers; [ aidalgol ];
|
|
|
|
};
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
passthru.updateScript = unstableGitUpdater {
|
|
|
|
tagPrefix = "v";
|
|
|
|
};
|
2023-08-22 20:05:09 +00:00
|
|
|
}
|