From a77bed927a239ef647d04f852f8cf6c47bb109ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Thu, 5 Apr 2018 21:58:14 +0200 Subject: [PATCH] python.pkgs.Babel: move expression --- .../python-modules/Babel/default.nix | 22 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 19 +--------------- 2 files changed, 23 insertions(+), 18 deletions(-) create mode 100644 pkgs/development/python-modules/Babel/default.nix diff --git a/pkgs/development/python-modules/Babel/default.nix b/pkgs/development/python-modules/Babel/default.nix new file mode 100644 index 000000000000..c828bc11d310 --- /dev/null +++ b/pkgs/development/python-modules/Babel/default.nix @@ -0,0 +1,22 @@ +{ lib, buildPythonPackage, fetchPypi, pytz, pytest }: + +buildPythonPackage rec { + pname = "Babel"; + version = "2.3.4"; + + src = fetchPypi { + inherit pname version; + sha256 = "0x98qqqw35xllpcama013a9788ly84z8dm1w2wwfpxh2710c8df5"; + }; + + propagatedBuildInputs = [ pytz ]; + + checkInputs = [ pytest ]; + + meta = with lib; { + homepage = http://babel.edgewall.org; + description = "A collection of tools for internationalizing Python applications"; + license = licenses.bsd3; + maintainers = with maintainers; [ garbas ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 9ff744cfea56..4b45061fabd3 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -10637,24 +10637,7 @@ in { pygit2 = callPackage ../development/python-modules/pygit2 { }; - Babel = buildPythonPackage (rec { - name = "Babel-2.3.4"; - - src = pkgs.fetchurl { - url = "mirror://pypi/B/Babel/${name}.tar.gz"; - sha256 = "0x98qqqw35xllpcama013a9788ly84z8dm1w2wwfpxh2710c8df5"; - }; - - buildInputs = with self; [ pytest ]; - propagatedBuildInputs = with self; [ pytz ]; - - meta = { - homepage = http://babel.edgewall.org; - description = "A collection of tools for internationalizing Python applications"; - license = licenses.bsd3; - maintainers = with maintainers; [ garbas ]; - }; - }); + Babel = callPackage ../development/python-modules/Babel { }; pybfd = callPackage ../development/python-modules/pybfd { };