1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-30 10:08:18 +00:00
trezor-firmware/python/default.nix

21 lines
530 B
Nix
Raw Normal View History

with import <nixpkgs> {};
let
python = let
packageOverrides = self: super: {
trezor = super.trezor.overridePythonAttrs(old: rec {
version = "master";
src = ./.;
doCheck = true; # set to false if you want to skip tests
checkPhase = ''
runHook preCheck
2020-01-02 11:53:50 +00:00
pytest tests/ --ignore tests/test_tx_api.py
runHook postCheck
'';
});
};
in pkgs.python3.override {inherit packageOverrides; self = python;};
in python.withPackages(ps:[ps.trezor])