From 5e90be5fd763cb55aa34be61fd7cc5a02ca9a242 Mon Sep 17 00:00:00 2001 From: Chris Ostrouchov Date: Tue, 16 Oct 2018 14:45:52 -0400 Subject: [PATCH] pythonPackage.pyfribidi: refactor move to python-modules --- .../python-modules/pyfribidi/default.nix | 25 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 17 +------------ 2 files changed, 26 insertions(+), 16 deletions(-) create mode 100644 pkgs/development/python-modules/pyfribidi/default.nix diff --git a/pkgs/development/python-modules/pyfribidi/default.nix b/pkgs/development/python-modules/pyfribidi/default.nix new file mode 100644 index 000000000000..a5caca40650d --- /dev/null +++ b/pkgs/development/python-modules/pyfribidi/default.nix @@ -0,0 +1,25 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +, isPy3k +, isPyPy +}: + +buildPythonPackage rec { + version = "0.11.0"; + pname = "pyfribidi"; + disabled = isPy3k || isPyPy; + + src = fetchPypi { + inherit pname version; + extension = "zip"; + sha256 = "6f7d83c09eae0cb98a40b85ba3dedc31af4dbff8fc4425f244c1e9f44392fded"; + }; + + meta = with stdenv.lib; { + description = "A simple wrapper around fribidi"; + homepage = https://github.com/pediapress/pyfribidi; + license = stdenv.lib.licenses.gpl2; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 150b9a65d5f6..ca197f0f05fa 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2374,22 +2374,7 @@ in { feedparser = callPackage ../development/python-modules/feedparser { }; - pyfribidi = buildPythonPackage rec { - version = "0.11.0"; - name = "pyfribidi-${version}"; - disabled = isPy3k || isPyPy; - - src = pkgs.fetchurl { - url = "mirror://pypi/p/pyfribidi/${name}.zip"; - sha256 = "6f7d83c09eae0cb98a40b85ba3dedc31af4dbff8fc4425f244c1e9f44392fded"; - }; - - meta = { - description = "A simple wrapper around fribidi"; - homepage = https://github.com/pediapress/pyfribidi; - license = stdenv.lib.licenses.gpl2; - }; - }; + pyfribidi = callPackage ../development/python-modules/pyfribidi { }; docker_compose = callPackage ../development/python-modules/docker_compose {};