Skip to content

Instantly share code, notes, and snippets.

@mredaelli
Created April 5, 2019 10:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mredaelli/84aefc0c69e4bceb6e73de76f2137d0c to your computer and use it in GitHub Desktop.
Save mredaelli/84aefc0c69e4bceb6e73de76f2137d0c to your computer and use it in GitHub Desktop.
let
pkgs = import <nixpkgs> {};
in
with pkgs;
let
mypython = pkgs.python36;
ppkgs = mypython.pkgs;
cfscrape = with ppkgs; callPackage ~/src/nixpkgs/cfscrape {};
dateparser = with ppkgs; callPackage ~/src/nixpkgs/dateparser {};
langdetect = with ppkgs; callPackage ~/src/nixpkgs/langdetect {};
pdftotext = with ppkgs; callPackage ~/src/nixpkgs/pdftotext {};
sqlitedict = with ppkgs; callPackage ~/src/nixpkgs/sqlitedict {};
requests-aws4auth = with ppkgs; callPackage ~/src/nixpkgs/requests-aws4auth {};
scrapinghub = with ppkgs; callPackage ~/src/nixpkgs/scrapinghub {};
scrapy-crawlera = with ppkgs; callPackage ~/src/nixpkgs/scrapy-crawlera {};
docker-py = with ppkgs; callPackage ~/src/nixpkgs/docker-py { };
shub = with ppkgs; callPackage ~/src/nixpkgs/shub { inherit docker-py scrapinghub; };
my-packages = python-packages: with python-packages;
[
virtualenvwrapper
cffi
boto3
beautifulsoup4
cfscrape
dateparser
elasticsearch
jinja2
langdetect
moto
msgpack-python
pdftotext
requests-aws4auth
scrapy-crawlera
scrapy
shub
sqlitedict
voluptuous
click
];
in ((mypython.withPackages (my-packages)).override (args: { ignoreCollisions = true; })).env
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment