python310Packages.python-nomad: disable on unsupported Python releases
- add format - equalize
This commit is contained in:
parent
85d2314e20
commit
e635ba6b59
1 changed files with 15 additions and 3 deletions
|
@ -1,20 +1,32 @@
|
|||
{ lib, buildPythonPackage, fetchPypi, requests }:
|
||||
{ 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 ];
|
||||
propagatedBuildInputs = [
|
||||
requests
|
||||
];
|
||||
|
||||
# Tests require nomad agent
|
||||
doCheck = false;
|
||||
|
||||
pythonImportsCheck = [ "nomad" ];
|
||||
pythonImportsCheck = [
|
||||
"nomad"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python client library for Hashicorp Nomad";
|
||||
|
|
Loading…
Reference in a new issue