From 80ca1cae8b72767e2b27164e8c499e7ac894f36a Mon Sep 17 00:00:00 2001 From: wisut hantanong Date: Thu, 31 Aug 2017 21:02:30 +0700 Subject: [PATCH] pythonPackages.pygpgme : move to separate expression --- .../python-modules/pygpgme/default.nix | 26 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 23 +--------------- 2 files changed, 27 insertions(+), 22 deletions(-) create mode 100644 pkgs/development/python-modules/pygpgme/default.nix diff --git a/pkgs/development/python-modules/pygpgme/default.nix b/pkgs/development/python-modules/pygpgme/default.nix new file mode 100644 index 000000000000..85bf262837f7 --- /dev/null +++ b/pkgs/development/python-modules/pygpgme/default.nix @@ -0,0 +1,26 @@ +{ stdenv, buildPythonPackage, fetchurl, isPyPy +, gpgme }: + +buildPythonPackage rec { + version = "0.3"; + pname = "pygpgme"; + name = "${pname}-${version}"; + disabled = isPyPy; + + src = fetchurl { + url = "https://launchpad.net/pygpgme/trunk/${version}/+download/${name}.tar.gz"; + sha256 = "5fd887c407015296a8fd3f4b867fe0fcca3179de97ccde90449853a3dfb802e1"; + }; + + # error: invalid command 'test' + doCheck = false; + + propagatedBuildInputs = [ gpgme ]; + + meta = with stdenv.lib; { + homepage = "https://launchpad.net/pygpgme"; + description = "A Python wrapper for the GPGME library"; + license = licenses.lgpl21; + maintainers = with maintainers; [ garbas ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index c0748876922e..bf9076850bef 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -17805,28 +17805,7 @@ in { }; }); - pygpgme = buildPythonPackage rec { - version = "0.3"; - name = "pygpgme-${version}"; - disabled = isPyPy; - - src = pkgs.fetchurl { - url = "https://launchpad.net/pygpgme/trunk/${version}/+download/${name}.tar.gz"; - sha256 = "5fd887c407015296a8fd3f4b867fe0fcca3179de97ccde90449853a3dfb802e1"; - }; - - # error: invalid command 'test' - doCheck = false; - - propagatedBuildInputs = with self; [ pkgs.gpgme ]; - - meta = { - homepage = "https://launchpad.net/pygpgme"; - description = "A Python wrapper for the GPGME library"; - license = licenses.lgpl21; - maintainers = with maintainers; [ garbas ]; - }; - }; + pygpgme = callPackage ../development/python-modules/pygpgme { }; pylint = callPackage ../development/python-modules/pylint { };