nixpkgs/pkgs/games/nile/default.nix
Aidan Gauland 23a9597a0e
nile: fix passthru.updateScript
The update script was erroneously carried over from the gogdl
derivation code, upon which this derivation was based initially.  It
should be using unstableGitUpdater instead.

Date in current "unstable" version string corrected to UTC.
2023-11-25 07:52:58 +13:00

60 lines
1.1 KiB
Nix

{ lib
, unstableGitUpdater
, buildPythonApplication
, fetchFromGitHub
, pythonOlder
, setuptools
, requests
, protobuf
, pycryptodome
, zstandard
, json5
, platformdirs
, cacert
}:
buildPythonApplication rec {
pname = "nile";
version = "unstable-2023-10-02";
format = "pyproject";
src = fetchFromGitHub {
owner = "imLinguin";
repo = "nile";
rev = "8f7ab2650fc730efc8960b5fcd71421d724a4108";
hash = "sha256-Vhjp9JX8VX0PWsvEh5eOhz7vsIEaiCyPNPOjibE8GXo=";
};
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 ];
};
passthru.updateScript = unstableGitUpdater { };
}