python310Packages.python-nomad: disable on unsupported Python releases

- add format
- equalize
This commit is contained in:
Fabian Affolter 2023-06-04 10:21:30 +02:00 committed by GitHub
parent 85d2314e20
commit e635ba6b59
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,20 +1,32 @@
{ lib, buildPythonPackage, fetchPypi, requests }: { lib
, buildPythonPackage
, fetchPypi
, requests
, pythonOlder
}:
buildPythonPackage rec { buildPythonPackage rec {
pname = "python-nomad"; pname = "python-nomad";
version = "2.0.0"; version = "2.0.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
hash = "sha256-5IyHNw1ArE8fU9DoSQMGkDI9d/OiR1YI/7nTPeFIK+A="; hash = "sha256-5IyHNw1ArE8fU9DoSQMGkDI9d/OiR1YI/7nTPeFIK+A=";
}; };
propagatedBuildInputs = [ requests ]; propagatedBuildInputs = [
requests
];
# Tests require nomad agent # Tests require nomad agent
doCheck = false; doCheck = false;
pythonImportsCheck = [ "nomad" ]; pythonImportsCheck = [
"nomad"
];
meta = with lib; { meta = with lib; {
description = "Python client library for Hashicorp Nomad"; description = "Python client library for Hashicorp Nomad";