python310Packages.flake8-length: adjust build system
This commit is contained in:
parent
5d06e1f656
commit
4e87222e18
1 changed files with 16 additions and 5 deletions
|
@ -1,14 +1,17 @@
|
||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, pythonOlder
|
|
||||||
, flake8
|
|
||||||
, pytestCheckHook
|
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
|
, flake8
|
||||||
|
, flit-core
|
||||||
|
, pytestCheckHook
|
||||||
|
, pythonOlder
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "flake8-length";
|
pname = "flake8-length";
|
||||||
version = "0.3.1";
|
version = "0.3.1";
|
||||||
|
format = "pyproject";
|
||||||
|
|
||||||
disabled = pythonOlder "3.6";
|
disabled = pythonOlder "3.6";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
|
@ -16,17 +19,25 @@ buildPythonPackage rec {
|
||||||
sha256 = "sha256-Dr1hTCU2G1STczXJsUPMGFYs1NpIAk1I95vxXsRTtRA=";
|
sha256 = "sha256-Dr1hTCU2G1STczXJsUPMGFYs1NpIAk1I95vxXsRTtRA=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
flit-core
|
||||||
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
flake8
|
flake8
|
||||||
];
|
];
|
||||||
|
|
||||||
nativeCheckInputs = [ pytestCheckHook ];
|
nativeCheckInputs = [
|
||||||
|
pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
pythonImportsCheck = [
|
pythonImportsCheck = [
|
||||||
"flake8_length"
|
"flake8_length"
|
||||||
];
|
];
|
||||||
|
|
||||||
pytestFlagsArray = [ "tests/" ];
|
pytestFlagsArray = [
|
||||||
|
"tests/"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Flake8 plugin for a smart line length validation";
|
description = "Flake8 plugin for a smart line length validation";
|
||||||
|
|
Loading…
Reference in a new issue