From 248ebe9b43d6043be184bf5a35d8c3bbdf176a8c Mon Sep 17 00:00:00 2001 From: Rahul Gopinath Date: Mon, 9 May 2016 10:39:15 -0700 Subject: [PATCH] pythonpackages.pytimeparse: init pytimeparse at 1.1.5 A small Python library to parse various kinds of time expressions --- pkgs/top-level/python-packages.nix | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 66aa6fb9c27..b31a61813d3 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -222,6 +222,25 @@ in modules // { pysideTools = callPackage ../development/python-modules/pyside/tools.nix { }; + pytimeparse = buildPythonPackage rec { + name = "pytimeparse-1.1.5"; + disabled = isPy3k; + + meta = { + description = "A small Python library to parse various kinds of time expressions"; + homepage = "https://github.com/wroberts/pytimeparse"; + license = licenses.mit; + maintainers = with maintainers; [ vrthra ]; + }; + + propagatedBuildInputs = with self; [ nose ]; + + src = pkgs.fetchurl { + url = "mirror://pypi/p/pytimeparse/${name}.tar.gz"; + sha256 = "01xj31m5brydm4gvc6lwx26r74903wvm1jx3g05633k3mqlvvpcs"; + }; + }; + pyxml = if !isPy3k then callPackage ../development/python-modules/pyxml{ } else throw "pyxml not supported for interpreter ${python.executable}"; rhpl = if !isPy3k then callPackage ../development/python-modules/rhpl {} else throw "rhpl not supported for interpreter ${python.executable}";