Unverified Commit 560f121b authored by Julien Malka's avatar Julien Malka Committed by GitHub
Browse files

Merge pull request #310634 from Tom-Hubrecht/loadcredential

parents 88933ce2 c4462d46
Loading
Loading
Loading
Loading
+34 −0
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools,
  wheel,
}:

buildPythonPackage rec {
  pname = "loadcredential";
  version = "1.1";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "Tom-Hubrecht";
    repo = "loadcredential";
    rev = "v${version}";
    hash = "sha256-GXpMqGLDmDnTGa9cBYe0CP3Evm5sQ3AK9u6k3mLAW34=";
  };

  build-system = [
    setuptools
    wheel
  ];

  pythonImportsCheck = [ "loadcredential" ];

  meta = {
    description = "A simple python package to read credentials passed through systemd's LoadCredential, with a fallback on env variables ";
    homepage = "https://github.com/Tom-Hubrecht/loadcredential";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ thubrecht ];
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -6964,6 +6964,8 @@ self: super: with self; {
  lnkparse3 = callPackage ../development/python-modules/lnkparse3 { };
  loadcredential = callPackage ../development/python-modules/loadcredential { };
  loca = callPackage ../development/python-modules/loca { };
  localimport = callPackage ../development/python-modules/localimport { };