1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 wheel, 7}: 8 9buildPythonPackage rec { 10 pname = "loadcredential"; 11 version = "1.1"; 12 pyproject = true; 13 14 src = fetchFromGitHub { 15 owner = "Tom-Hubrecht"; 16 repo = "loadcredential"; 17 rev = "v${version}"; 18 hash = "sha256-GXpMqGLDmDnTGa9cBYe0CP3Evm5sQ3AK9u6k3mLAW34="; 19 }; 20 21 build-system = [ 22 setuptools 23 wheel 24 ]; 25 26 pythonImportsCheck = [ "loadcredential" ]; 27 28 meta = { 29 description = "A simple python package to read credentials passed through systemd's LoadCredential, with a fallback on env variables "; 30 homepage = "https://github.com/Tom-Hubrecht/loadcredential"; 31 license = lib.licenses.mit; 32 maintainers = with lib.maintainers; [ thubrecht ]; 33 }; 34}