summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/baidu-aip/default.nix
blob: c8fc92da521d8869a1fe662390b2f06e8e79cade (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
35
36
37
38
39
{
  lib,
  buildPythonPackage,
  fetchPypi,
  setuptools,
  chardet,
  requests,
}:

buildPythonPackage rec {
  pname = "baidu-aip";
  version = "4.16.1";
  pyproject = true;

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-zNYjEVVwhqFAR7w7CR3rWYefUZcM+sPZ87KYfDDLxN0=";
  };

  build-system = [ setuptools ];

  dependencies = [
    chardet
    requests
  ];

  # Package has no tests
  doCheck = false;

  pythonImportsCheck = [ "aip" ];

  meta = {
    description = "Baidu AI Platform SDK for Python";
    homepage = "https://github.com/Baidu-AIP/python-sdk";
    changelog = "https://github.com/Baidu-AIP/python-sdk/releases";
    license = lib.licenses.asl20;
    maintainers = [ lib.maintainers.jamiemagee ];
  };
}