From c0e09bef5a9903cebc47a8ed7fc74646110449ec Mon Sep 17 00:00:00 2001 From: Chris Ostrouchov Date: Mon, 29 Oct 2018 17:28:45 -0400 Subject: [PATCH] pythonPAckages.yapsy: refactor move to python-modules --- .../python-modules/yapsy/default.nix | 23 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 12 +--------- 2 files changed, 24 insertions(+), 11 deletions(-) create mode 100644 pkgs/development/python-modules/yapsy/default.nix diff --git a/pkgs/development/python-modules/yapsy/default.nix b/pkgs/development/python-modules/yapsy/default.nix new file mode 100644 index 000000000000..1f4a28459be4 --- /dev/null +++ b/pkgs/development/python-modules/yapsy/default.nix @@ -0,0 +1,23 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +}: + +buildPythonPackage rec { + pname = "Yapsy"; + version = "1.11.223"; + + src = fetchPypi { + inherit pname version; + sha256 = "19pjsnqizswnczhlav4lb7zlzs0n73ijrsgksy4374b14jkkkfs5"; + }; + + doCheck = false; + + meta = with stdenv.lib; { + homepage = http://yapsy.sourceforge.net/; + description = "Yet another plugin system"; + license = licenses.bsd0; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 8852bc68b226..cdc23eed6266 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -4601,17 +4601,7 @@ in { rocket-errbot = callPackage ../development/python-modules/rocket-errbot { }; - Yapsy = buildPythonPackage rec { - name = "Yapsy-${version}"; - version = "1.11.223"; - - src = pkgs.fetchurl { - url = "mirror://pypi/y/yapsy/${name}.tar.gz"; - sha256 = "19pjsnqizswnczhlav4lb7zlzs0n73ijrsgksy4374b14jkkkfs5"; - }; - - doCheck = false; - }; + Yapsy = callPackage ../development/python-modules/yapsy { }; ansi = callPackage ../development/python-modules/ansi { };