Skip to content

Instantly share code, notes, and snippets.

@garbas
Forked from res0nat0r/requirements.nix
Created June 9, 2017 10:48
Show Gist options
  • Save garbas/4a7bef2ca2bfc7b0732b796116f35fb5 to your computer and use it in GitHub Desktop.
Save garbas/4a7bef2ca2bfc7b0732b796116f35fb5 to your computer and use it in GitHub Desktop.
mrjob
# generated using pypi2nix tool (version: 1.8.0)
# See more at: https://github.com/garbas/pypi2nix
#
# COMMAND:
# pypi2nix -V 2.7 -e mrjob
#
{ pkgs ? import <nixpkgs> {}
}:
let
inherit (pkgs) makeWrapper;
inherit (pkgs.stdenv.lib) fix' extends inNixShell;
pythonPackages =
import "${toString pkgs.path}/pkgs/top-level/python-packages.nix" {
inherit pkgs;
inherit (pkgs) stdenv;
python = pkgs.python27Full;
};
commonBuildInputs = [];
commonDoCheck = false;
withPackages = pkgs':
let
pkgs = builtins.removeAttrs pkgs' ["__unfix__"];
interpreter = pythonPackages.buildPythonPackage {
name = "python27Full-interpreter";
buildInputs = [ makeWrapper ] ++ (builtins.attrValues pkgs);
buildCommand = ''
mkdir -p $out/bin
ln -s ${pythonPackages.python.interpreter} $out/bin/${pythonPackages.python.executable}
for dep in ${builtins.concatStringsSep " " (builtins.attrValues pkgs)}; do
if [ -d "$dep/bin" ]; then
for prog in "$dep/bin/"*; do
if [ -f $prog ]; then
ln -s $prog $out/bin/`basename $prog`
fi
done
fi
done
for prog in "$out/bin/"*; do
wrapProgram "$prog" --prefix PYTHONPATH : "$PYTHONPATH"
done
pushd $out/bin
ln -s ${pythonPackages.python.executable} python
popd
'';
passthru.interpreter = pythonPackages.python;
};
in {
__old = pythonPackages;
inherit interpreter;
mkDerivation = pythonPackages.buildPythonPackage;
packages = pkgs;
overrideDerivation = drv: f:
pythonPackages.buildPythonPackage (drv.drvAttrs // f drv.drvAttrs);
withPackages = pkgs'':
withPackages (pkgs // pkgs'');
};
python = withPackages {};
generated = self: {
"PyYAML" = python.mkDerivation {
name = "PyYAML-3.12";
src = pkgs.fetchurl { url = "https://pypi.python.org/packages/4a/85/db5a2df477072b2902b0eb892feb37d88ac635d36245a72a6a69b23b383a/PyYAML-3.12.tar.gz"; sha256 = "592766c6303207a20efc445587778322d7f73b161bd994f227adaa341ba212ab"; };
doCheck = commonDoCheck;
buildInputs = commonBuildInputs;
propagatedBuildInputs = [ ];
meta = with pkgs.stdenv.lib; {
homepage = "";
license = licenses.mit;
description = "YAML parser and emitter for Python";
};
};
"boto" = python.mkDerivation {
name = "boto-2.47.0";
src = pkgs.fetchurl { url = "https://pypi.python.org/packages/bc/ee/e674c01b10972765511705dc77b824b550646a30994cbc428087c4910ac3/boto-2.47.0.tar.gz"; sha256 = "684ccaa1c030acd8ec6a48664d0555a6042bdc325b15ce52645c085bc36c0a69"; };
doCheck = commonDoCheck;
buildInputs = commonBuildInputs;
propagatedBuildInputs = [ ];
meta = with pkgs.stdenv.lib; {
homepage = "";
license = licenses.mit;
description = "Amazon Web Services Library";
};
};
"filechunkio" = python.mkDerivation {
name = "filechunkio-1.8";
src = pkgs.fetchurl { url = "https://pypi.python.org/packages/10/4d/1789767002fa666fcf486889e8f6a2a90784290be9c0bc28d627efba401e/filechunkio-1.8.tar.gz"; sha256 = "c8540c2d27e851d3a475b2e14ac109d66c777dd43ab67031891c826e82026745"; };
doCheck = commonDoCheck;
buildInputs = commonBuildInputs;
propagatedBuildInputs = [ ];
meta = with pkgs.stdenv.lib; {
homepage = "";
license = "MIT license";
description = "FileChunkIO represents a chunk of an OS-level file containing bytes data";
};
};
"google-api-python-client" = python.mkDerivation {
name = "google-api-python-client-1.6.2";
src = pkgs.fetchurl { url = "https://pypi.python.org/packages/e8/04/4bb1672918e4fc6d6a8201bdaf986b9fb4763f2a47b11496186dbbbd40ce/google-api-python-client-1.6.2.tar.gz"; sha256 = "8c2f50f8057571a5f817c74820cadb754d47799c5a4ea463c1500fe8e092c1ae"; };
doCheck = commonDoCheck;
buildInputs = commonBuildInputs;
propagatedBuildInputs = [
self."httplib2"
self."oauth2client"
self."six"
self."uritemplate"
];
meta = with pkgs.stdenv.lib; {
homepage = "";
license = licenses.asl20;
description = "Google API Client Library for Python";
};
};
"httplib2" = python.mkDerivation {
name = "httplib2-0.10.3";
src = pkgs.fetchurl { url = "https://pypi.python.org/packages/e4/2e/a7e27d2c36076efeb8c0e519758968b20389adf57a9ce3af139891af2696/httplib2-0.10.3.tar.gz"; sha256 = "e404d3b7bd86c1bc931906098e7c1305d6a3a6dcef141b8bb1059903abb3ceeb"; };
doCheck = commonDoCheck;
buildInputs = commonBuildInputs;
propagatedBuildInputs = [ ];
meta = with pkgs.stdenv.lib; {
homepage = "";
license = licenses.mit;
description = "A comprehensive HTTP client library.";
};
};
"mrjob" = python.mkDerivation {
name = "mrjob-0.5.10";
src = pkgs.fetchurl { url = "https://pypi.python.org/packages/6a/56/4467bfcc6dca30b9acb7923a5f8ac81074c39fc34ca42a2bcb75be51daeb/mrjob-0.5.10.tar.gz"; sha256 = "41f657aeb22df8af1391bbd907a9034f10129a691bdbe074aa583f9ae01d8554"; };
doCheck = commonDoCheck;
buildInputs = commonBuildInputs;
propagatedBuildInputs = [
self."PyYAML"
self."boto"
self."filechunkio"
self."google-api-python-client"
];
meta = with pkgs.stdenv.lib; {
homepage = "";
license = "License :: OSI Approved :: Apache Software License";
description = "Python MapReduce framework";
};
};
"oauth2client" = python.mkDerivation {
name = "oauth2client-4.1.1";
src = pkgs.fetchurl { url = "https://pypi.python.org/packages/7f/60/d683b7933ae7f4d2f3cd53afda197025d7178ca1516aa340aba0020b1094/oauth2client-4.1.1.tar.gz"; sha256 = "fd02b705092b76f443028328eaed366135f26c0d3e52bdbf66e649a944938ca1"; };
doCheck = commonDoCheck;
buildInputs = commonBuildInputs;
propagatedBuildInputs = [
self."httplib2"
self."pyasn1"
self."pyasn1-modules"
self."rsa"
self."six"
];
meta = with pkgs.stdenv.lib; {
homepage = "";
license = licenses.asl20;
description = "OAuth 2.0 client library";
};
};
"pyasn1" = python.mkDerivation {
name = "pyasn1-0.2.3";
src = pkgs.fetchurl { url = "https://pypi.python.org/packages/69/17/eec927b7604d2663fef82204578a0056e11e0fc08d485fdb3b6199d9b590/pyasn1-0.2.3.tar.gz"; sha256 = "738c4ebd88a718e700ee35c8d129acce2286542daa80a82823a7073644f706ad"; };
doCheck = commonDoCheck;
buildInputs = commonBuildInputs;
propagatedBuildInputs = [ ];
meta = with pkgs.stdenv.lib; {
homepage = "";
license = licenses.bsdOriginal;
description = "ASN.1 types and codecs";
};
};
"pyasn1-modules" = python.mkDerivation {
name = "pyasn1-modules-0.0.9";
src = pkgs.fetchurl { url = "https://pypi.python.org/packages/cf/57/d4097cea8caf360ffe0c5d6f25c2cb9317500cdc000fd02a741ba6e64c9e/pyasn1-modules-0.0.9.tar.gz"; sha256 = "be0e4157e4a53551279d6c6e366b080527f5fd068616835b4abf32c14f657f5f"; };
doCheck = commonDoCheck;
buildInputs = commonBuildInputs;
propagatedBuildInputs = [
self."pyasn1"
];
meta = with pkgs.stdenv.lib; {
homepage = "";
license = licenses.bsdOriginal;
description = "A collection of ASN.1-based protocols modules.";
};
};
"rsa" = python.mkDerivation {
name = "rsa-3.4.2";
src = pkgs.fetchurl { url = "https://pypi.python.org/packages/14/89/adf8b72371e37f3ca69c6cb8ab6319d009c4a24b04a31399e5bd77d9bb57/rsa-3.4.2.tar.gz"; sha256 = "25df4e10c263fb88b5ace923dd84bf9aa7f5019687b5e55382ffcdb8bede9db5"; };
doCheck = commonDoCheck;
buildInputs = commonBuildInputs;
propagatedBuildInputs = [
self."pyasn1"
];
meta = with pkgs.stdenv.lib; {
homepage = "";
license = "License :: OSI Approved :: Apache Software License";
description = "Pure-Python RSA implementation";
};
};
"six" = python.mkDerivation {
name = "six-1.10.0";
src = pkgs.fetchurl { url = "https://pypi.python.org/packages/b3/b2/238e2590826bfdd113244a40d9d3eb26918bd798fc187e2360a8367068db/six-1.10.0.tar.gz"; sha256 = "105f8d68616f8248e24bf0e9372ef04d3cc10104f1980f54d57b2ce73a5ad56a"; };
doCheck = commonDoCheck;
buildInputs = commonBuildInputs;
propagatedBuildInputs = [ ];
meta = with pkgs.stdenv.lib; {
homepage = "";
license = licenses.mit;
description = "Python 2 and 3 compatibility utilities";
};
};
"uritemplate" = python.mkDerivation {
name = "uritemplate-3.0.0";
src = pkgs.fetchurl { url = "https://pypi.python.org/packages/cd/db/f7b98cdc3f81513fb25d3cbe2501d621882ee81150b745cdd1363278c10a/uritemplate-3.0.0.tar.gz"; sha256 = "c02643cebe23fc8adb5e6becffe201185bf06c40bda5c0b4028a93f1527d011d"; };
doCheck = commonDoCheck;
buildInputs = commonBuildInputs;
propagatedBuildInputs = [ ];
meta = with pkgs.stdenv.lib; {
homepage = "";
license = licenses.bsdOriginal;
description = "URI templates";
};
};
};
overrides = import ./requirements_override.nix { inherit pkgs python; };
commonOverrides = [
];
in python.withPackages
(fix' (pkgs.lib.fold
extends
generated
([overrides] ++ commonOverrides)
)
)
appdirs==1.4.3
boto==2.47.0
filechunkio==1.8
google-api-python-client==1.6.2
httplib2==0.10.3
mrjob==0.5.10
oauth2client==4.1.1
packaging==16.8
pyasn1==0.2.3
pyasn1-modules==0.0.9
pyparsing==2.2.0
PyYAML==3.12
rsa==3.4.2
six==1.10.0
uritemplate==3.0.0
{ pkgs, python }:
self: super: {
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment