nixpkgs/pkgs/development/python-modules/base58/default.nix
Fabian Affolter a9df3a0f22 python312Packages.base58: refactor
- add changelog to meta
2024-10-23 22:12:35 +02:00

47 lines
930 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 = with lib; {
description = "Base58 and Base58Check implementation";
homepage = "https://github.com/keis/base58";
changelog = "https://github.com/keis/base58/blob/v${version}/CHANGELOG.md";
license = licenses.mit;
maintainers = with maintainers; [ nyanloutre ];
mainProgram = "base58";
};
}