-
-
Save dustinlacewell/3db0471b11c46243bb6084cea0b06706 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
with (import <nixpkgs> {}); | |
let | |
python3 = python3.override { | |
packageOverrides = python-self: python-super: { | |
plotly = python-super.plotly.overrideAttrs (oldAttrs: { | |
pname = "plotly"; | |
version = "3.10.0"; | |
src = fetchPypi { | |
inherit pname version; | |
sha256 = "20df14f7883807f57d96ac245841e086a1799f2c2778462a7f3bca704e369c00"; | |
}; | |
}); | |
}; | |
}; | |
quantmod = python3.pkgs.buildPythonPackage rec { | |
pname = "quantmod"; | |
version = "0.0.0"; | |
src = ./.; | |
propagatedBuildInputs = with self; with python3.pkgs; [ numpy pandas pandas-datareader plotly ]; | |
doCheck = false; | |
}; | |
in mkShell { | |
buildInputs = with python3.pkgs; [ python3 quantmod numpy pandas pandas-datareader plotly ]; | |
shellHook = '' | |
# Tells pip to put packages into $PIP_PREFIX instead of the usual locations. | |
# See https://pip.pypa.io/en/stable/user_guide/#environment-variables. | |
export PIP_PREFIX=$(pwd)/_build/pip_packages | |
export PYTHONPATH="$PIP_PREFIX/${pkgs.python3.sitePackages}:$PYTHONPATH" | |
export PATH="$PIP_PREFIX/bin:$PATH" | |
unset SOURCE_DATE_EPOCH | |
''; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment