nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at r-updates 47 lines 1.1 kB view raw
1{ 2 lib, 3 fetchFromGitHub, 4 buildPythonPackage, 5 pytestCheckHook, 6 rustPlatform, 7 stdenv, 8 libiconv, 9}: 10 11buildPythonPackage rec { 12 pname = "py-bip39-bindings"; 13 version = "0.3.0"; 14 pyproject = true; 15 16 src = fetchFromGitHub { 17 owner = "polkascan"; 18 repo = "py-bip39-bindings"; 19 tag = "v${version}"; 20 hash = "sha256-jpBlupIjlH2LJkSm3tzxrH5wT2+eziugNMR4B01gSdE="; 21 }; 22 23 cargoDeps = rustPlatform.fetchCargoVendor { 24 inherit pname version src; 25 hash = "sha256-qX4ydIT2+8dJQIVSYzO8Rg8PP61cu7ZjanPkmI34IUY="; 26 }; 27 28 nativeBuildInputs = with rustPlatform; [ 29 cargoSetupHook 30 maturinBuildHook 31 ]; 32 33 buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ libiconv ]; 34 35 nativeCheckInputs = [ pytestCheckHook ]; 36 37 enabledTestPaths = [ "tests.py" ]; 38 39 pythonImportsCheck = [ "bip39" ]; 40 41 meta = { 42 description = "Python bindings for the tiny-bip39 library"; 43 homepage = "https://github.com/polkascan/py-bip39-bindings"; 44 license = lib.licenses.asl20; 45 maintainers = with lib.maintainers; [ stargate01 ]; 46 }; 47}