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-01-02 11:29:13 +00:00
|
|
|
version = "unstable-2023-10-02";
|
2023-08-22 20:05:09 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "imLinguin";
|
|
|
|
repo = "nile";
|
2023-11-16 04:20:00 +00:00
|
|
|
rev = "8f7ab2650fc730efc8960b5fcd71421d724a4108";
|
|
|
|
hash = "sha256-Vhjp9JX8VX0PWsvEh5eOhz7vsIEaiCyPNPOjibE8GXo=";
|
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";
|
|
|
|
homepage = "https://github.com/imLinguin/nile";
|
|
|
|
license = with licenses; [ gpl3 ];
|
|
|
|
maintainers = with maintainers; [ aidalgol ];
|
|
|
|
};
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
passthru.updateScript = unstableGitUpdater { };
|
2023-08-22 20:05:09 +00:00
|
|
|
}
|