dotnet: improve language coverage of passthru.tests for dotnet sdks (#370789)
[NixPkgs.git] / pkgs / games / nile / default.nix
blobaa24289ba07042847bad4588b30b43a1629f2142
2   lib,
3   gitUpdater,
4   buildPythonApplication,
5   fetchFromGitHub,
6   pythonOlder,
7   setuptools,
8   requests,
9   protobuf,
10   pycryptodome,
11   zstandard,
12   json5,
13   platformdirs,
16 let
17   version = "1.1.2";
19 buildPythonApplication {
20   pname = "nile";
21   inherit version;
22   format = "pyproject";
24   src = fetchFromGitHub {
25     owner = "imLinguin";
26     repo = "nile";
27     rev = "v${version}";
28     hash = "sha256-/C4b8wPKWHGgiheuAN7AvU+KcD5aj5i6KzgFSdTIkNI=";
29   };
31   disabled = pythonOlder "3.8";
33   propagatedBuildInputs = [
34     setuptools
35     requests
36     protobuf
37     pycryptodome
38     zstandard
39     json5
40     platformdirs
41   ];
43   pyprojectAppendix = ''
44     [tool.setuptools.packages.find]
45     include = ["nile*"]
46   '';
48   postPatch = ''
49     echo "$pyprojectAppendix" >> pyproject.toml
50   '';
52   pythonImportsCheck = [ "nile" ];
54   meta = with lib; {
55     description = "Unofficial Amazon Games client";
56     mainProgram = "nile";
57     homepage = "https://github.com/imLinguin/nile";
58     license = with licenses; [ gpl3 ];
59     maintainers = with maintainers; [ aidalgol ];
60   };
62   passthru.updateScript = gitUpdater {
63     rev-prefix = "v";
64   };