nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytestCheckHook,
6 pythonOlder,
7 setuptools,
8 typing-extensions,
9}:
10
11buildPythonPackage rec {
12 pname = "pybase64";
13 version = "1.4.3";
14 pyproject = true;
15
16 src = fetchFromGitHub {
17 owner = "mayeut";
18 repo = "pybase64";
19 tag = "v${version}";
20 fetchSubmodules = true;
21 hash = "sha256-cR8Ht6QbHXCED86xCbiLg4bxt1Hkv4Ota7R+voZE3yo=";
22 };
23
24 build-system = [ setuptools ];
25
26 nativeCheckInputs = [
27 pytestCheckHook
28 ]
29 ++ lib.optionals (pythonOlder "3.12") [ typing-extensions ];
30
31 pythonImportsCheck = [ "pybase64" ];
32
33 meta = {
34 description = "Fast Base64 encoding/decoding";
35 mainProgram = "pybase64";
36 homepage = "https://github.com/mayeut/pybase64";
37 changelog = "https://github.com/mayeut/pybase64/releases/tag/${src.tag}";
38 license = lib.licenses.bsd2;
39 maintainers = [ ];
40 };
41}