summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/python-nomad/default.nix
blob: a4bce616c6718e2aa728490957fa8927a510f4a3 (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
40
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools,
  requests,
  nix-update-script,
}:

buildPythonPackage rec {
  pname = "python-nomad";
  version = "2.1.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "jrxfive";
    repo = "python-nomad";
    tag = version;
    hash = "sha256-tLS463sYVlOr2iZSgSkd4pHUVCtiIPJ3L8+9omlX4NY=";
  };

  build-system = [ setuptools ];

  dependencies = [ requests ];

  # Tests require nomad agent
  doCheck = false;

  pythonImportsCheck = [ "nomad" ];

  passthru.updateScript = nix-update-script { };

  meta = {
    description = "Python client library for Hashicorp Nomad";
    homepage = "https://github.com/jrxFive/python-nomad";
    changelog = "https://github.com/jrxFive/python-nomad/blob/${version}/CHANGELOG.md";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ xbreak ];
  };
}