f34ce41345
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
39 lines
822 B
Nix
39 lines
822 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
setuptools,
|
|
requests,
|
|
pythonOlder,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "python-nomad";
|
|
version = "2.0.1";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
pname = "python_nomad";
|
|
inherit version;
|
|
hash = "sha256-TXCm6FxYoavjN3ASioQ7yXQVsDDXedDKBgGGP8ghQdM=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [ requests ];
|
|
|
|
# Tests require nomad agent
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "nomad" ];
|
|
|
|
meta = with lib; {
|
|
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 = licenses.mit;
|
|
maintainers = with maintainers; [ xbreak ];
|
|
};
|
|
}
|