11 buildPythonPackage rec {
16 disabled = pythonOlder "3.8";
18 src = fetchFromGitHub {
21 rev = "refs/tags/v${version}";
22 fetchSubmodules = true;
23 hash = "sha256-Yl0P9Ygy6IirjSFrutl+fmn4BnUL1nXzbQgADNQFg3I=";
26 build-system = [ setuptools ];
30 ] ++ lib.optionals (pythonOlder "3.12") [ typing-extensions ];
32 pythonImportsCheck = [ "pybase64" ];
35 description = "Fast Base64 encoding/decoding";
36 mainProgram = "pybase64";
37 homepage = "https://github.com/mayeut/pybase64";
38 changelog = "https://github.com/mayeut/pybase64/releases/tag/${lib.removePrefix "refs/tags/" src.rev}";
39 license = lib.licenses.bsd2;