From 50ec0b1724bc65caa9eae8874bfa09f90444d692 Mon Sep 17 00:00:00 2001 From: Chris Ostrouchov Date: Sat, 27 Oct 2018 09:17:53 -0400 Subject: [PATCH] pythonPackages.timelib: refactor move to python-modules --- .../python-modules/timelib/default.nix | 22 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 17 +------------- 2 files changed, 23 insertions(+), 16 deletions(-) create mode 100644 pkgs/development/python-modules/timelib/default.nix diff --git a/pkgs/development/python-modules/timelib/default.nix b/pkgs/development/python-modules/timelib/default.nix new file mode 100644 index 000000000000..39ff4b6de15e --- /dev/null +++ b/pkgs/development/python-modules/timelib/default.nix @@ -0,0 +1,22 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +}: + +buildPythonPackage rec { + pname = "timelib"; + version = "0.2.4"; + + src = fetchPypi { + inherit pname version; + extension = "zip"; + sha256 = "49142233bdb5971d64a41e05a1f80a408a02be0dc7d9f8c99e7bdd0613ba81cb"; + }; + + meta = with stdenv.lib; { + description = "Parse english textual date descriptions"; + homepage = "https://github.com/pediapress/timelib/"; + license = licenses.zlib; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index cb9142bb3c01..0f7b0ebd83fb 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -3786,22 +3786,7 @@ in { tilestache = callPackage ../development/python-modules/tilestache { }; - timelib = buildPythonPackage rec { - name = "timelib-0.2.4"; - - src = pkgs.fetchurl { - url = "mirror://pypi/t/timelib/${name}.zip"; - sha256 = "49142233bdb5971d64a41e05a1f80a408a02be0dc7d9f8c99e7bdd0613ba81cb"; - }; - - buildInputs = with self; [ ]; - - meta = { - description = "Parse english textual date descriptions"; - homepage = "https://github.com/pediapress/timelib/"; - license = licenses.zlib; - }; - }; + timelib = callPackage ../development/python-modules/timelib { }; timeout-decorator = callPackage ../development/python-modules/timeout-decorator { };