nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 pyhamcrest,
6 pytestCheckHook,
7 setuptools,
8}:
9
10buildPythonPackage rec {
11 pname = "base58";
12 version = "2.1.1";
13 pyproject = true;
14
15 src = fetchPypi {
16 inherit pname version;
17 hash = "sha256-xdDLP1tugejjXaV1Q4jdzG0NFLbGoTLLk9ae1YCnJ4w=";
18 };
19
20 build-system = [ setuptools ];
21
22 nativeCheckInputs = [
23 pyhamcrest
24 pytestCheckHook
25 ];
26
27 disabledTests = [
28 # avoid dependency on pytest-benchmark
29 "test_decode_random"
30 "test_encode_random"
31 ];
32
33 pythonImportsCheck = [ "base58" ];
34
35 meta = {
36 description = "Base58 and Base58Check implementation";
37 homepage = "https://github.com/keis/base58";
38 changelog = "https://github.com/keis/base58/blob/v${version}/CHANGELOG.md";
39 license = lib.licenses.mit;
40 maintainers = with lib.maintainers; [ nyanloutre ];
41 mainProgram = "base58";
42 };
43}