From 9441311e932800bf9c1ff48718328c3f0bf4b840 Mon Sep 17 00:00:00 2001 From: Frederik Rietdijk Date: Sun, 24 Jan 2016 10:19:53 +0100 Subject: [PATCH] pythonPackages.pylint: 1.4.1 -> 1.5.4 --- .../python-modules/pylint/default.nix | 23 --------------- pkgs/top-level/python-packages.nix | 28 +++++++++++++++++-- 2 files changed, 26 insertions(+), 25 deletions(-) delete mode 100644 pkgs/development/python-modules/pylint/default.nix diff --git a/pkgs/development/python-modules/pylint/default.nix b/pkgs/development/python-modules/pylint/default.nix deleted file mode 100644 index 09890e8694f..00000000000 --- a/pkgs/development/python-modules/pylint/default.nix +++ /dev/null @@ -1,23 +0,0 @@ -{ stdenv, fetchurl, astroid, buildPythonPackage }: - -buildPythonPackage rec { - name = "pylint-1.4.1"; - namePrefix = ""; - - src = fetchurl { - url = "https://pypi.python.org/packages/source/p/pylint/${name}.tar.gz"; - sha256 = "0c7hw1pcp5sqmc0v86zygw21isfgzbsqdmlb1sywncnlxmh30f1y"; - }; - - propagatedBuildInputs = [ astroid ]; - - postInstall = '' - mkdir -p $out/share/emacs/site-lisp - cp "elisp/"*.el $out/share/emacs/site-lisp/ - ''; - - meta = { - homepage = http://www.logilab.org/project/pylint; - description = "A bug and style checker for Python"; - }; -} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 0cff9bbdc8e..14c6ac9b631 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -85,8 +85,6 @@ in modules // { blivet = callPackage ../development/python-modules/blivet { }; - pylint = callPackage ../development/python-modules/pylint { }; - dbus = callPackage ../development/python-modules/dbus { dbus = pkgs.dbus; }; @@ -15836,6 +15834,32 @@ in modules // { }; }; + pylint = buildPythonPackage rec { + name = "pylint-${version}"; + version = "1.5.4"; + + src = pkgs.fetchurl { + url = "https://pypi.python.org/packages/source/p/pylint/${name}.tar.gz"; + sha256 = "2fe3cc2fc66a56fdc35dbbc2bf1dd96a534abfc79ee6b2ad9ae4fe166e570c4b"; + }; + + propagatedBuildInputs = with self; [ astroid ]; + + checkPhase = '' + cd pylint/test; ${python.interpreter} -m unittest discover -p "*test*" + ''; + + postInstall = '' + mkdir -p $out/share/emacs/site-lisp + cp "elisp/"*.el $out/share/emacs/site-lisp/ + ''; + + meta = { + homepage = http://www.logilab.org/project/pylint; + description = "A bug and style checker for Python"; + }; + }; + pyrr = buildPythonPackage rec { name = "pyrr-${version}"; version = "0.7.2";