ced21f5e1a
The `buildPython*` function computes name from `pname` and `version`. This change removes `name` attribute from all expressions in `pkgs/development/python-modules`. While at it, some other minor changes were made as well, such as replacing `fetchurl` calls with `fetchPypi`.
25 lines
752 B
Nix
25 lines
752 B
Nix
{ lib, fetchPypi, buildPythonPackage,
|
|
protobuf, hidapi, ecdsa, mnemonic, requests, pyblake2, click, libusb1, rlp
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "trezor";
|
|
version = "0.9.1";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "a481191011bade98f1e9f1201e7c72a83945050657bbc90dc4ac32dc8b8b46a4";
|
|
};
|
|
|
|
propagatedBuildInputs = [ protobuf hidapi ecdsa mnemonic requests pyblake2 click libusb1 rlp ];
|
|
|
|
# There are no actual tests: "ImportError: No module named tests"
|
|
doCheck = false;
|
|
|
|
meta = {
|
|
description = "Python library for communicating with TREZOR Bitcoin Hardware Wallet";
|
|
homepage = https://github.com/trezor/python-trezor;
|
|
license = lib.licenses.gpl3;
|
|
maintainers = with lib.maintainers; [ np ];
|
|
};
|
|
}
|