summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/fivem-api/default.nix
blob: b0b7254067da12b6ce80c23a90f8bb1eadadbc3c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{
  lib,
  aiohttp,
  buildPythonPackage,
  fetchPypi,
  setuptools-scm,
}:

buildPythonPackage rec {
  pname = "fivem-api";
  version = "0.1.2";
  format = "setuptools";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-6llrMGWbDRmysEw+B6B115hLS5xlktQEXiSHzPLbV5s=";
  };

  nativeBuildInputs = [ setuptools-scm ];

  propagatedBuildInputs = [ aiohttp ];

  # Module has no tests
  doCheck = false;

  pythonImportsCheck = [ "fivem" ];

  meta = {
    description = "Module for interacting with FiveM servers";
    homepage = "https://github.com/Sander0542/fivem-api";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ fab ];
  };
}