567e8dfd8e
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
47 lines
928 B
Nix
47 lines
928 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
pyhamcrest,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "base58";
|
|
version = "2.1.1";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.10";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-xdDLP1tugejjXaV1Q4jdzG0NFLbGoTLLk9ae1YCnJ4w=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
nativeCheckInputs = [
|
|
pyhamcrest
|
|
pytestCheckHook
|
|
];
|
|
|
|
disabledTests = [
|
|
# avoid dependency on pytest-benchmark
|
|
"test_decode_random"
|
|
"test_encode_random"
|
|
];
|
|
|
|
pythonImportsCheck = [ "base58" ];
|
|
|
|
meta = {
|
|
description = "Base58 and Base58Check implementation";
|
|
homepage = "https://github.com/keis/base58";
|
|
changelog = "https://github.com/keis/base58/blob/v${version}/CHANGELOG.md";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ nyanloutre ];
|
|
mainProgram = "base58";
|
|
};
|
|
}
|