mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 01:43:15 +00:00
pylint-exit: init at 1.2.0
This commit is contained in:
parent
38d21595b8
commit
fb37aecd66
36
pkgs/development/tools/pylint-exit/default.nix
Normal file
36
pkgs/development/tools/pylint-exit/default.nix
Normal file
@ -0,0 +1,36 @@
|
||||
{ lib, fetchFromGitHub, python3Packages }:
|
||||
|
||||
with python3Packages; buildPythonApplication rec {
|
||||
pname = "pylint-exit";
|
||||
version = "1.2.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "jongracecox";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "0hwfny48g394visa3xd15425fsw596r3lhkfhswpjrdk2mnk3cny";
|
||||
};
|
||||
|
||||
# Converting the shebang manually as it is not picked up by patchShebangs
|
||||
postPatch = ''
|
||||
substituteInPlace pylint_exit.py \
|
||||
--replace "#!/usr/local/bin/python" "#!${python.interpreter}"
|
||||
'';
|
||||
|
||||
# See https://github.com/jongracecox/pylint-exit/pull/7
|
||||
buildInputs = [ m2r ];
|
||||
|
||||
# setup.py reads its version from the TRAVIS_TAG environment variable
|
||||
TRAVIS_TAG = version;
|
||||
|
||||
checkPhase = ''
|
||||
${python.interpreter} -m doctest pylint_exit.py
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Utility to handle pylint exit codes in an OS-friendly way";
|
||||
license = licenses.mit;
|
||||
homepage = "https://github.com/jongracecox/pylint-exit";
|
||||
maintainers = [ maintainers.fabiangd ];
|
||||
};
|
||||
}
|
@ -14941,6 +14941,8 @@ with pkgs;
|
||||
|
||||
pycritty = with python3Packages; toPythonApplication pycritty;
|
||||
|
||||
pylint-exit = callPackage ../development/tools/pylint-exit { };
|
||||
|
||||
qtcreator = libsForQt5.callPackage ../development/tools/qtcreator {
|
||||
inherit (linuxPackages) perf;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user