Created
February 3, 2017 17:59
-
-
Save jozko/dc0f7e11e7b3f996486ccc1b5832783a 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 | |
Scrapy = python35Packages.buildPythonPackage rec { | |
name = "Scrapy-1.3.0"; | |
src = fetchurl { | |
url = "https://pypi.python.org/packages/e1/2d/f54cb2bed5d1d4bbc6ae093842282c8a0daad8c0cd9bf7504fbdf01b657f/Scrapy-1.3.0.tar.gz"; | |
md5 = "605e38a6ed446c9bdef8c0d0f09b8f61"; | |
}; | |
#propagatedBuildInputs = [ python35Packages.pyopenssl python35Packages.lxml python35Packages.service-identity python35Packages.parsel PyDispatcher python35Packages.queuelib python35Packages.twisted python35Packages.attrs w3lib]; | |
propagatedBuildInputs = [ python35Packages.twisted python35Packages.service-identity ]; | |
dontStrip = true; | |
}; | |
in | |
python35Packages.buildPythonPackage { | |
name = "impurePythonEnv"; | |
buildInputs = [ | |
git | |
libxml2 | |
libxslt | |
libffi | |
python35Full | |
python35Packages.virtualenv | |
python35Packages.cffi | |
python35Packages.twisted | |
python35Packages.lxml | |
python35Packages.parsel | |
python35Packages.six | |
python35Packages.pydispatcher | |
python35Packages.service-identity | |
stdenv | |
zlib | |
gcc | |
clang | |
openssl | |
Scrapy | |
]; | |
src = null; | |
# When used as `nix-shell --pure` | |
shellHook = '' | |
export SOURCE_DATE_EPOCH=315532800 | |
unset http_proxy | |
export GIT_SSL_CAINFO=/etc/ssl/certs/ca-bundle.crt | |
''; | |
# used when building environments | |
extraCmds = '' | |
unset http_proxy # otherwise downloads will fail ("nodtd.invalid") | |
export SOURCE_DATE_EPOCH=315532800 | |
export GIT_SSL_CAINFO=/etc/ssl/certs/ca-bundle.crt | |
''; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment