nixos/doh-server: init
[NixPkgs.git] / pkgs / development / python-modules / python-nomad / default.nix
blob2f4cfc1fef7ff3df614bc3ebc1b3b505f2ba2465
2   lib,
3   buildPythonPackage,
4   fetchPypi,
5   setuptools,
6   requests,
7   pythonOlder,
8 }:
10 buildPythonPackage rec {
11   pname = "python-nomad";
12   version = "2.0.1";
13   pyproject = true;
15   disabled = pythonOlder "3.7";
17   src = fetchPypi {
18     pname = "python_nomad";
19     inherit version;
20     hash = "sha256-TXCm6FxYoavjN3ASioQ7yXQVsDDXedDKBgGGP8ghQdM=";
21   };
23   build-system = [ setuptools ];
25   dependencies = [ requests ];
27   # Tests require nomad agent
28   doCheck = false;
30   pythonImportsCheck = [ "nomad" ];
32   meta = with lib; {
33     description = "Python client library for Hashicorp Nomad";
34     homepage = "https://github.com/jrxFive/python-nomad";
35     changelog = "https://github.com/jrxFive/python-nomad/blob/${version}/CHANGELOG.md";
36     license = licenses.mit;
37     maintainers = with maintainers; [ xbreak ];
38   };