From f5a4b625dbb0ba3e56befbd0c1f61bda434fc8dd Mon Sep 17 00:00:00 2001 From: Chris Ostrouchov Date: Mon, 15 Oct 2018 17:48:50 -0400 Subject: [PATCH] pythonPackage.meld3: refactor move to python-modules --- .../python-modules/meld3/default.nix | 23 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 17 +------------- 2 files changed, 24 insertions(+), 16 deletions(-) create mode 100644 pkgs/development/python-modules/meld3/default.nix diff --git a/pkgs/development/python-modules/meld3/default.nix b/pkgs/development/python-modules/meld3/default.nix new file mode 100644 index 000000000000..12b518484bc2 --- /dev/null +++ b/pkgs/development/python-modules/meld3/default.nix @@ -0,0 +1,23 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +}: + +buildPythonPackage rec { + pname = "meld3"; + version = "1.0.0"; + + src = fetchPypi { + inherit pname version; + sha256 = "57b41eebbb5a82d4a928608962616442e239ec6d611fe6f46343e765e36f0b2b"; + }; + + doCheck = false; + + meta = with stdenv.lib; { + description = "An HTML/XML templating engine used by supervisor"; + homepage = https://github.com/supervisor/meld3; + license = licenses.free; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 4882fb671af7..8f815b0c69b4 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5833,22 +5833,7 @@ in { MechanicalSoup = callPackage ../development/python-modules/MechanicalSoup { }; - meld3 = buildPythonPackage rec { - name = "meld3-1.0.0"; - - src = pkgs.fetchurl { - url = mirror://pypi/m/meld3/meld3-1.0.0.tar.gz; - sha256 = "57b41eebbb5a82d4a928608962616442e239ec6d611fe6f46343e765e36f0b2b"; - }; - - doCheck = false; - - meta = { - description = "An HTML/XML templating engine used by supervisor"; - homepage = https://github.com/supervisor/meld3; - license = licenses.free; - }; - }; + meld3 = callPackage ../development/python-modules/meld3 { }; meliae = callPackage ../development/python-modules/meliae {};