From 509a340d901228667cc8484d29319dfaee59ddf1 Mon Sep 17 00:00:00 2001 From: Franz Pletz Date: Mon, 7 May 2018 12:35:16 +0200 Subject: [PATCH] pythonPackages.coinmarketcap: init at 4.2.1 --- .../python-modules/coinmarketcap/default.nix | 19 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 21 insertions(+) create mode 100644 pkgs/development/python-modules/coinmarketcap/default.nix diff --git a/pkgs/development/python-modules/coinmarketcap/default.nix b/pkgs/development/python-modules/coinmarketcap/default.nix new file mode 100644 index 000000000000..52afdee46ab7 --- /dev/null +++ b/pkgs/development/python-modules/coinmarketcap/default.nix @@ -0,0 +1,19 @@ +{ lib, stdenv, buildPythonPackage, fetchPypi, requests-cache }: + +buildPythonPackage rec { + pname = "coinmarketcap"; + version = "4.2.1"; + + src = fetchPypi { + inherit pname version; + sha256 = "0bk530cmfqri84m9386ydn3f89gq23nxylvnl523gr5589vw54bj"; + }; + + propagatedBuildInputs = [ requests-cache ]; + + meta = with lib; { + description = "A python wrapper around the https://coinmarketcap.com API."; + homepage = https://github.com/barnumbirr/coinmarketcap; + license = licenses.asl20; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 0a8b65e42a56..034622e213b5 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -18257,6 +18257,8 @@ EOF aiohue = callPackage ../development/python-modules/aiohue { }; PyMVGLive = callPackage ../development/python-modules/pymvglive { }; + + coinmarketcap = callPackage ../development/python-modules/coinmarketcap { }; }); in fix' (extends overrides packages)