Skip to content

Instantly share code, notes, and snippets.

@cleverca22
Created July 31, 2017 15:21
Show Gist options
  • Save cleverca22/e2470b33fac65534aaa0acaf33340467 to your computer and use it in GitHub Desktop.
Save cleverca22/e2470b33fac65534aaa0acaf33340467 to your computer and use it in GitHub Desktop.
with import <nixpkgs> {};
runCommand "script"
{ buildInputs = [ (python.withPackages (ps: with ps; [ numpy opencv3 ])) ]; }
''
mkdir -pv $out/bin/
cp -vi ${./script.py} $out/bin/output
patchShebangs $out/bin/
''
#!/usr/bin/env python2.7
import numpy as np
import cv2
import sys
import json
import os
import math
import warnings
import argparse
import string
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment