From 4c85595ada3f4c6df9754c381e702f38c7cbaaf8 Mon Sep 17 00:00:00 2001 From: Chris Ostrouchov Date: Wed, 24 Jul 2019 14:46:12 -0400 Subject: [PATCH] pythonPackages.simple-salesforce: init at 0.74.3 --- .../simple-salesforce/default.nix | 51 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 53 insertions(+) create mode 100644 pkgs/development/python-modules/simple-salesforce/default.nix diff --git a/pkgs/development/python-modules/simple-salesforce/default.nix b/pkgs/development/python-modules/simple-salesforce/default.nix new file mode 100644 index 000000000000..1eacd25beded --- /dev/null +++ b/pkgs/development/python-modules/simple-salesforce/default.nix @@ -0,0 +1,51 @@ +{ lib +, fetchFromGitHub +, buildPythonPackage +, requests +, pyopenssl +, cryptography +, idna +, mock +, isPy27 +, nose +, pytz +, responses +}: + +buildPythonPackage rec { + pname = "simple-salesforce"; + version = "0.74.3"; + + src = fetchFromGitHub { + owner = pname; + repo = pname; + rev = "v${version}"; + sha256 = "1n960xgrnmv20l31nm0im7pb4nfa83bmx4x4clqrh2jkpzq3ric0"; + }; + + propagatedBuildInputs = [ + requests + pyopenssl + cryptography + idna + ]; + + checkInputs = [ + nose + pytz + responses + ] ++ lib.optionals isPy27 [ mock ]; + + postPatch = '' + substituteInPlace setup.py \ + --replace "mock==1.0.1" "mock" + ''; + + meta = with lib; { + description = "A very simple Salesforce.com REST API client for Python"; + homepage = https://github.com/simple-salesforce/simple-salesforce; + license = licenses.asl20; + maintainers = with maintainers; [ costrouc ]; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 3d55a8bdc0c7..ebea2514a49a 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -1101,6 +1101,8 @@ in { simpleeval = callPackage ../development/python-modules/simpleeval { }; + simple-salesforce = callPackage ../development/python-modules/simple-salesforce { }; + singledispatch = callPackage ../development/python-modules/singledispatch { }; sip = callPackage ../development/python-modules/sip { };