linuxPackages_latest.broadcom_sta: add patch to compile on Kernel 6.12 (#359484)
[NixPkgs.git] / pkgs / development / python-modules / base58 / default.nix
blobc3a615af3e084a9a8aa7ef66ee5a7e73bdf2932f
2   lib,
3   buildPythonPackage,
4   fetchPypi,
5   pyhamcrest,
6   pytestCheckHook,
7   pythonOlder,
8   setuptools,
9 }:
11 buildPythonPackage rec {
12   pname = "base58";
13   version = "2.1.1";
14   pyproject = true;
16   disabled = pythonOlder "3.10";
18   src = fetchPypi {
19     inherit pname version;
20     hash = "sha256-xdDLP1tugejjXaV1Q4jdzG0NFLbGoTLLk9ae1YCnJ4w=";
21   };
23   build-system = [ setuptools ];
25   nativeCheckInputs = [
26     pyhamcrest
27     pytestCheckHook
28   ];
30   disabledTests = [
31     # avoid dependency on pytest-benchmark
32     "test_decode_random"
33     "test_encode_random"
34   ];
36   pythonImportsCheck = [ "base58" ];
38   meta = with lib; {
39     description = "Base58 and Base58Check implementation";
40     homepage = "https://github.com/keis/base58";
41     changelog = "https://github.com/keis/base58/blob/v${version}/CHANGELOG.md";
42     license = licenses.mit;
43     maintainers = with maintainers; [ nyanloutre ];
44     mainProgram = "base58";
45   };