nixpkgs/pkgs/games/nile/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

65 lines
1.1 KiB
Nix
Raw Normal View History

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