Skip to content

Commit

Permalink
Fix pytest in derivation.nix (#26)
Browse files Browse the repository at this point in the history
* Fix pytest in derivation.nix

We were overriding checkPhase so the pytest hook would not run.
Use postCheck instead which is a hook that is executed.

* Pin lief to a specific version
  • Loading branch information
fzakaria authored Aug 4, 2024
1 parent c652dad commit a87e97c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion derivation.nix
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ in
[pytestCheckHook flake8 mypy isort black]
++ [pyright];

checkPhase = ''
postCheck = ''
make lint
'';

Expand Down
4 changes: 3 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ classifiers = [
]
dependencies = [
"capstone >= 5.0.1",
"lief >=0.14.1",
# lief has proven to change API a lot
# pin it to a specific version
"lief ==0.14.1",
"apsw >= 3.43.1.0",
"sh >= 2.0.6",
]
Expand Down

0 comments on commit a87e97c

Please sign in to comment.