From e635ba6b59ead3792dbb6910df58418e17f25a73 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 4 Jun 2023 10:21:30 +0200 Subject: [PATCH] python310Packages.python-nomad: disable on unsupported Python releases - add format - equalize --- .../python-modules/python-nomad/default.nix | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/python-nomad/default.nix b/pkgs/development/python-modules/python-nomad/default.nix index 8364f62b440d..3a7750e9deac 100644 --- a/pkgs/development/python-modules/python-nomad/default.nix +++ b/pkgs/development/python-modules/python-nomad/default.nix @@ -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";