depot/third_party/nixpkgs/pkgs/development/python-modules/python-nomad/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

35 lines
766 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
requests,
pythonOlder,
}:
buildPythonPackage rec {
pname = "python-nomad";
version = "2.0.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-5IyHNw1ArE8fU9DoSQMGkDI9d/OiR1YI/7nTPeFIK+A=";
};
propagatedBuildInputs = [ 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 ];
};
}