From 527e326a74acb47ca1f219879130056ca3843e0e Mon Sep 17 00:00:00 2001 From: Zach Collins Date: Wed, 22 Aug 2018 15:56:24 -0700 Subject: [PATCH] release 0.14.3 --- default.nix | 19 +++++++++++++++++++ rollbar/__init__.py | 2 +- shell.nix | 31 +++++++++++++++++++++++++++++++ 3 files changed, 51 insertions(+), 1 deletion(-) create mode 100644 default.nix create mode 100644 shell.nix diff --git a/default.nix b/default.nix new file mode 100644 index 00000000..253f06dc --- /dev/null +++ b/default.nix @@ -0,0 +1,19 @@ +{ + pkgs ? import {}, + python ? pkgs.python36, +}: + +with pkgs; +with python.pkgs; + +buildPythonPackage rec { + name = "pyrollbar"; + src = builtins.filterSource (path: type: + type != "unknown" && + baseNameOf path != ".git" && + baseNameOf path != "result" && + !(pkgs.lib.hasSuffix ".nix" path) + ) ./.; + propagatedBuildInputs = [requests six]; +} + diff --git a/rollbar/__init__.py b/rollbar/__init__.py index 1d26b412..c58efda7 100644 --- a/rollbar/__init__.py +++ b/rollbar/__init__.py @@ -24,7 +24,7 @@ from rollbar.lib import events, filters, dict_merge, parse_qs, text, transport, urljoin, iteritems -__version__ = '0.14.2' +__version__ = '0.14.3' __log_name__ = 'rollbar' log = logging.getLogger(__log_name__) diff --git a/shell.nix b/shell.nix new file mode 100644 index 00000000..fe6fc384 --- /dev/null +++ b/shell.nix @@ -0,0 +1,31 @@ +{ + pkgs ? import {} +}: + +with pkgs; +let +python = let + packageOverrides = self: super: { + pandas = super.pandas.overridePythonAttrs(old: { + doCheck = false; + }); + + twine = super.twine.overridePythonAttrs(old: { + doCheck = false; + }); + + tqdm = super.tqdm.overridePythonAttrs(old: { + doCheck = false; + }); + }; +in python36.override { inherit packageOverrides; }; +pyrollbar = pkgs.callPackage ./. { inherit python; }; +pyenv = python.withPackages(ps: with ps; [ pyrollbar twine ]); + +in + +stdenv.mkDerivation { + name = "pyrollbar-shell"; + buildInputs = [ pyenv ]; +} +