From aecd6aeb112c574533192fb780ca592183760558 Mon Sep 17 00:00:00 2001 From: Chris Ostrouchov Date: Wed, 17 Oct 2018 15:03:06 -0400 Subject: [PATCH] pythonPackages.Kajiki: refactor move to python-modules --- .../python-modules/kajiki/default.nix | 26 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 18 +------------ 2 files changed, 27 insertions(+), 17 deletions(-) create mode 100644 pkgs/development/python-modules/kajiki/default.nix diff --git a/pkgs/development/python-modules/kajiki/default.nix b/pkgs/development/python-modules/kajiki/default.nix new file mode 100644 index 000000000000..2391b334d617 --- /dev/null +++ b/pkgs/development/python-modules/kajiki/default.nix @@ -0,0 +1,26 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +, Babel +, pytz +, nine +}: + +buildPythonPackage rec { + pname = "Kajiki"; + version = "0.5.5"; + + src = fetchPypi { + inherit pname version; + sha256 = "effcae388e25c3358eb0bbd733448509d11a1ec500e46c69241fc673021f0517"; + }; + + propagatedBuildInputs = [ Babel pytz nine ]; + + meta = with stdenv.lib; { + description = "Kajiki provides fast well-formed XML templates"; + homepage = "https://github.com/nandoflorestan/kajiki"; + license = licenses.mit; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 5af934e335a9..4274ec9146a3 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -3025,23 +3025,7 @@ in { kaitaistruct = callPackage ../development/python-modules/kaitaistruct { }; - Kajiki = buildPythonPackage rec { - name = "Kajiki-${version}"; - version = "0.5.5"; - - src = pkgs.fetchurl { - url = "mirror://pypi/K/Kajiki/${name}.tar.gz"; - sha256 = "effcae388e25c3358eb0bbd733448509d11a1ec500e46c69241fc673021f0517"; - }; - - propagatedBuildInputs = with self; [ - Babel pytz nine - ]; - meta = with stdenv.lib; { - description = "Kajiki provides fast well-formed XML templates"; - homepage = "https://github.com/nandoflorestan/kajiki"; - }; - }; + Kajiki = callPackage ../development/python-modules/kajiki { }; WSME = callPackage ../development/python-modules/WSME { };