3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #217997 from fabaff/flake8-length-fix

python310Packages.flake8-length: adjust build system
This commit is contained in:
Fabian Affolter 2023-02-24 21:50:23 +01:00 committed by GitHub
commit 61b96f535d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,14 +1,17 @@
{ lib
, buildPythonPackage
, pythonOlder
, flake8
, pytestCheckHook
, fetchPypi
, flake8
, flit-core
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "flake8-length";
version = "0.3.1";
format = "pyproject";
disabled = pythonOlder "3.6";
src = fetchPypi {
@ -16,22 +19,31 @@ buildPythonPackage rec {
sha256 = "sha256-Dr1hTCU2G1STczXJsUPMGFYs1NpIAk1I95vxXsRTtRA=";
};
nativeBuildInputs = [
flit-core
];
propagatedBuildInputs = [
flake8
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"flake8_length"
];
nativeCheckInputs = [ pytestCheckHook ];
pytestFlagsArray = [
"tests/"
];
pytestFlagsArray = [ "tests/" ];
meta = {
meta = with lib; {
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 ];
changelog = "https://github.com/orsinium-labs/flake8-length/releases/tag/${version}";
license = licenses.mit;
maintainers = with maintainers; [ sauyon ];
};
}