From f0d53bd6f9f0cbd806d0f486e4bf7d4d69062f1b Mon Sep 17 00:00:00 2001 From: Drew Risinger Date: Tue, 21 Jan 2020 13:20:26 -0500 Subject: [PATCH] pythonPackages.docloud: init at 1.0.375 The IBM Decision Optimization on Cloud Python client. Requirement of docplex, which is a dependency of qiskit-aqua. --- .../python-modules/docloud/default.nix | 30 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 32 insertions(+) create mode 100644 pkgs/development/python-modules/docloud/default.nix diff --git a/pkgs/development/python-modules/docloud/default.nix b/pkgs/development/python-modules/docloud/default.nix new file mode 100644 index 000000000000..f1ec269f7cbb --- /dev/null +++ b/pkgs/development/python-modules/docloud/default.nix @@ -0,0 +1,30 @@ +{ lib +, buildPythonPackage +, fetchPypi +, requests +}: + +buildPythonPackage rec { + pname = "docloud"; + version = "1.0.375"; + + src = fetchPypi { + inherit pname version; + sha256 = "996d55407498fd01e6c6c480f367048f92255e9ca9db0e9ea19aaef91328a441"; + }; + + propagatedBuildInputs = [ + requests + ]; + + # Pypi's tarball doesn't contain tests. Source not available. + doCheck = false; + pythonImportsCheck = [ "docloud" ]; + + meta = with lib; { + description = "The IBM Decision Optimization on Cloud Python client"; + homepage = "https://onboarding-oaas.docloud.ibmcloud.com/software/analytics/docloud/"; + license = licenses.asl20; + maintainers = with maintainers; [ drewrisinger ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 927bfa285ba3..ca130a8df05e 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2544,6 +2544,8 @@ in { docker_pycreds = callPackage ../development/python-modules/docker-pycreds {}; + docloud = callPackage ../development/python-modules/docloud { }; + docopt = callPackage ../development/python-modules/docopt { }; doctest-ignore-unicode = callPackage ../development/python-modules/doctest-ignore-unicode { };