2025-01-04 00:19:17 +01:00

43 lines
912 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
pythonOlder,
setuptools,
typing-extensions,
}:
buildPythonPackage rec {
pname = "pybase64";
version = "1.4.0";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "mayeut";
repo = "pybase64";
tag = "v${version}";
fetchSubmodules = true;
hash = "sha256-Yl0P9Ygy6IirjSFrutl+fmn4BnUL1nXzbQgADNQFg3I=";
};
build-system = [ setuptools ];
nativeCheckInputs = [
pytestCheckHook
] ++ lib.optionals (pythonOlder "3.12") [ typing-extensions ];
pythonImportsCheck = [ "pybase64" ];
meta = {
description = "Fast Base64 encoding/decoding";
mainProgram = "pybase64";
homepage = "https://github.com/mayeut/pybase64";
changelog = "https://github.com/mayeut/pybase64/releases/tag/v${version}";
license = lib.licenses.bsd2;
maintainers = [ ];
};
}