1{ lib
2, buildPythonPackage
3, fetchPypi
4, requests
5, pythonOlder
6}:
7
8buildPythonPackage rec {
9 pname = "python-nomad";
10 version = "2.0.0";
11 format = "setuptools";
12
13 disabled = pythonOlder "3.7";
14
15 src = fetchPypi {
16 inherit pname version;
17 hash = "sha256-5IyHNw1ArE8fU9DoSQMGkDI9d/OiR1YI/7nTPeFIK+A=";
18 };
19
20 propagatedBuildInputs = [
21 requests
22 ];
23
24 # Tests require nomad agent
25 doCheck = false;
26
27 pythonImportsCheck = [
28 "nomad"
29 ];
30
31 meta = with lib; {
32 description = "Python client library for Hashicorp Nomad";
33 homepage = "https://github.com/jrxFive/python-nomad";
34 changelog = "https://github.com/jrxFive/python-nomad/blob/${version}/CHANGELOG.md";
35 license = licenses.mit;
36 maintainers = with maintainers; [ xbreak ];
37 };
38}