Skip to content

Commit

Permalink
add shell.nix
Browse files Browse the repository at this point in the history
  • Loading branch information
sorki committed Nov 8, 2023
1 parent add8f5b commit 5937d64
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions shell.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{ pkgs ? import <nixpkgs> {} }:
pkgs.mkShell {
buildInputs = [
(pkgs.python3.withPackages (ps: [
ps.requests
# tests
ps.setuptools
ps.pytest
ps.mock
ps.requests-mock
ps.pandas
])
)
];

shellHook = ''
echo
echo '# blockfrost-python development shell'
echo
echo '## to run unit tests, use'
echo 'pytest'
echo
echo '## to run integration tests, use'
echo 'export BLOCKFROST_PROJECT_ID_MAINNET=mainnet..'
echo 'pytest'
'';
}

0 comments on commit 5937d64

Please sign in to comment.