mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 01:43:15 +00:00
python3Packages.flake8-length: init at 0.2.0 (#143305)
This commit is contained in:
parent
3031cea64c
commit
e97b3010e5
37
pkgs/development/python-modules/flake8-length/default.nix
Normal file
37
pkgs/development/python-modules/flake8-length/default.nix
Normal file
@ -0,0 +1,37 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, pythonOlder
|
||||
, flake8
|
||||
, pytestCheckHook
|
||||
, fetchPypi
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "flake8-length";
|
||||
version = "0.2.0";
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "15frvccm1qx783jlx8fw811ks9jszln3agbb58lg4dhbmjaf2cxw";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
flake8
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"flake8_length"
|
||||
];
|
||||
|
||||
checkInputs = [ pytestCheckHook ];
|
||||
|
||||
pytestFlagsArray = [ "tests/" ];
|
||||
|
||||
meta = {
|
||||
description = "Flake8 plugin for a smart line length validation";
|
||||
homepage = "https://github.com/orsinium-labs/flake8-length";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ sauyon ];
|
||||
};
|
||||
}
|
@ -2719,6 +2719,8 @@ in {
|
||||
|
||||
flake8 = callPackage ../development/python-modules/flake8 { };
|
||||
|
||||
flake8-length = callPackage ../development/python-modules/flake8-length { };
|
||||
|
||||
flake8-debugger = callPackage ../development/python-modules/flake8-debugger { };
|
||||
|
||||
flake8-future-import = callPackage ../development/python-modules/flake8-future-import { };
|
||||
|
Loading…
Reference in New Issue
Block a user