pythonPackages.trezor_agent: refactor move to python-modules

This commit is contained in:
Chris Ostrouchov 2018-10-29 15:07:01 -04:00
parent 6ca3651766
commit 0851a181f0
No known key found for this signature in database
GPG key ID: 9ED59B0AB1EAF573
2 changed files with 32 additions and 22 deletions

View file

@ -0,0 +1,31 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, trezor
, libagent
, ecdsa
, ed25519
, mnemonic
, keepkey
, semver
}:
buildPythonPackage rec{
pname = "trezor_agent";
version = "0.9.0";
src = fetchPypi {
inherit pname version;
sha256 = "1i5cdamlf3c0ym600pjklij74p8ifj9cv7xrpnrfl1b8nkadswbz";
};
propagatedBuildInputs = [ trezor libagent ecdsa ed25519 mnemonic keepkey semver ];
meta = with stdenv.lib; {
description = "Using Trezor as hardware SSH agent";
homepage = https://github.com/romanz/trezor-agent;
license = licenses.gpl3;
maintainers = with maintainers; [ np ];
};
}

View file

@ -4529,28 +4529,7 @@ in {
trezor = callPackage ../development/python-modules/trezor { };
trezor_agent = buildPythonPackage rec{
name = "${pname}-${version}";
pname = "trezor_agent";
version = "0.9.0";
src = fetchPypi {
inherit pname version;
sha256 = "1i5cdamlf3c0ym600pjklij74p8ifj9cv7xrpnrfl1b8nkadswbz";
};
propagatedBuildInputs = with self; [
trezor libagent ecdsa ed25519
mnemonic keepkey semver
];
meta = {
description = "Using Trezor as hardware SSH agent";
homepage = https://github.com/romanz/trezor-agent;
license = licenses.gpl3;
maintainers = with maintainers; [ np ];
};
};
trezor_agent = callPackage ../development/python-modules/trezor_agent { };
x11_hash = buildPythonPackage rec{
version = "1.4";