From 8ab1db0ff5e47e7c516f1bd8b5c6e86a92c88e2c Mon Sep 17 00:00:00 2001 From: davidak Date: Wed, 14 Feb 2018 01:06:29 +0100 Subject: [PATCH] micawber: init at 0.3.5 --- .../python-modules/micawber/default.nix | 26 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 28 insertions(+) create mode 100644 pkgs/development/python-modules/micawber/default.nix diff --git a/pkgs/development/python-modules/micawber/default.nix b/pkgs/development/python-modules/micawber/default.nix new file mode 100644 index 000000000000..5e3afe05ea79 --- /dev/null +++ b/pkgs/development/python-modules/micawber/default.nix @@ -0,0 +1,26 @@ +{ stdenv, buildPythonPackage, fetchPypi, beautifulsoup4 }: + +buildPythonPackage rec { + pname = "micawber"; + version = "0.3.5"; + + src = fetchPypi { + inherit pname version; + sha256 = "0pnq6j8f144virhri0drgf0058x6qcxfd5yrb0ynbwr8djh326yn"; + }; + + propagatedBuildInputs = [ beautifulsoup4 ]; + + meta = with stdenv.lib; { + homepage = http://micawber.readthedocs.io/en/latest/; + description = "A small library for extracting rich content from urls"; + license = licenses.mit; + longDescription = '' + micawber supplies a few methods for retrieving rich metadata + about a variety of links, such as links to youtube videos. + micawber also provides functions for parsing blocks of text and html + and replacing links to videos with rich embedded content. + ''; + maintainers = with maintainers; [ davidak ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 44a270b4db1e..6c6a1e463670 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -10111,6 +10111,8 @@ in { }; }; + micawber = callPackage ../development/python-modules/micawber { }; + minimock = buildPythonPackage rec { version = "1.2.8"; name = "minimock-${version}";