python312Packages.kneaddata: init at 0.7.7-alpha (#340230)
[NixPkgs.git] / pkgs / development / python-modules / pybase64 / default.nix
blob5af9c6561a0ddc167f144c627adf7e8516f037cc
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   pytestCheckHook,
6   pythonOlder,
7   setuptools,
8   typing-extensions,
9 }:
11 buildPythonPackage rec {
12   pname = "pybase64";
13   version = "1.4.0";
14   pyproject = true;
16   disabled = pythonOlder "3.8";
18   src = fetchFromGitHub {
19     owner = "mayeut";
20     repo = "pybase64";
21     rev = "refs/tags/v${version}";
22     fetchSubmodules = true;
23     hash = "sha256-Yl0P9Ygy6IirjSFrutl+fmn4BnUL1nXzbQgADNQFg3I=";
24   };
26   build-system = [ setuptools ];
28   nativeCheckInputs = [
29     pytestCheckHook
30   ] ++ lib.optionals (pythonOlder "3.12") [ typing-extensions ];
32   pythonImportsCheck = [ "pybase64" ];
34   meta = {
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;
40     maintainers = [ ];
41   };