Unverified Commit e635ba6b authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

python310Packages.python-nomad: disable on unsupported Python releases

- add format
- equalize
parent 85d2314e
Loading
Loading
Loading
Loading
+15 −3
Original line number Diff line number Diff line
{ 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";