mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-11 16:23:26 +00:00
e635ba6b59
- add format - equalize
39 lines
771 B
Nix
39 lines
771 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 ];
|
|
};
|
|
}
|