python3Packages.mnemonic: enable tests by fetching sources from github
This commit is contained in:
parent
fab6fcdceb
commit
c72b72a7c1
@ -1,20 +1,28 @@
|
|||||||
{ lib, fetchPypi, buildPythonPackage, pbkdf2 }:
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchFromGitHub
|
||||||
|
, pytestCheckHook
|
||||||
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "mnemonic";
|
pname = "mnemonic";
|
||||||
version = "0.19";
|
version = "0.19";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchFromGitHub {
|
||||||
inherit pname version;
|
owner = "trezor";
|
||||||
sha256 = "4e37eb02b2cbd56a0079cabe58a6da93e60e3e4d6e757a586d9f23d96abea931";
|
repo = "python-${pname}";
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "0rs3szdikkgypiwn43ad3lwh7zvpccw39j5ggkziq6v7pnw3isaq";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ pbkdf2 ];
|
checkInputs = [ pytestCheckHook ];
|
||||||
|
|
||||||
meta = {
|
pythonImportsCheck = [ "mnemonic" ];
|
||||||
description = "Implementation of Bitcoin BIP-0039";
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Reference implementation of BIP-0039";
|
||||||
homepage = "https://github.com/trezor/python-mnemonic";
|
homepage = "https://github.com/trezor/python-mnemonic";
|
||||||
license = lib.licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = with lib.maintainers; [ np ];
|
maintainers = with maintainers; [ np prusnak ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user