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 e1c2de1 commit 15e0014
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 15e0014

Please sign in to comment.