pythonPackages.mnemonic: move expression to mnemonic/default.nix

This commit is contained in:
rnhmjoj 2017-05-31 23:01:05 +02:00
parent 3463dd1c7b
commit b3c9127481
No known key found for this signature in database
GPG key ID: 362BB82B7E496B7C
2 changed files with 22 additions and 1 deletions

View file

@ -0,0 +1,21 @@
{ lib, fetchurl, buildPythonPackage, pbkdf2 }:
buildPythonPackage rec {
pname = "mnemonic";
version = "0.17";
name = "${pname}-${version}";
src = fetchurl {
url = "mirror://pypi/m/${pname}/${name}.tar.gz";
sha256 = "1hq6xb47jagfqf65iwcrh0065mj3521d2mxmahg7vfraihqyqdjn";
};
propagatedBuildInputs = [ pbkdf2 ];
meta = {
description = "Implementation of Bitcoin BIP-0039";
homepage = https://github.com/trezor/python-mnemonic;
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ np ];
};
}

View file

@ -29630,7 +29630,7 @@ EOF
inherit (pkgs) udev libusb1;
};
mnemonic = callPackage ../development/python-modules/mnemonic.nix { };
mnemonic = callPackage ../development/python-modules/mnemonic { };
keepkey = callPackage ../development/python-modules/keepkey { };