You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
trezor-firmware/python/default.nix

21 lines
530 B

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
pytest tests/ --ignore tests/test_tx_api.py
runHook postCheck
'';
});
};
in pkgs.python3.override {inherit packageOverrides; self = python;};
in python.withPackages(ps:[ps.trezor])