Skip to content

Commit 5937d64

Browse files
committed
add shell.nix
1 parent add8f5b commit 5937d64

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

shell.nix

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{ pkgs ? import <nixpkgs> {} }:
2+
pkgs.mkShell {
3+
buildInputs = [
4+
(pkgs.python3.withPackages (ps: [
5+
ps.requests
6+
# tests
7+
ps.setuptools
8+
ps.pytest
9+
ps.mock
10+
ps.requests-mock
11+
ps.pandas
12+
])
13+
)
14+
];
15+
16+
shellHook = ''
17+
echo
18+
echo '# blockfrost-python development shell'
19+
echo
20+
echo '## to run unit tests, use'
21+
echo 'pytest'
22+
echo
23+
echo '## to run integration tests, use'
24+
echo 'export BLOCKFROST_PROJECT_ID_MAINNET=mainnet..'
25+
echo 'pytest'
26+
'';
27+
}

0 commit comments

Comments
 (0)