mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 21:53:32 +00:00
5356420466
$ find -type f -name '*.nix' -print0 | xargs -P "$(nproc)" -0 sed -i \ -e 's!with lib.maintainers; \[ *\];![ ];!' \ -e 's!with maintainers; \[ *\];![ ];!'
46 lines
918 B
Nix
46 lines
918 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
flake8,
|
|
pycodestyle,
|
|
pylama,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "flake8-import-order";
|
|
version = "0.18.2";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-4jlB+JLaPgwJ1xG6u7DHO8c1JC6bIWtyZhZ1ipINkA4=";
|
|
};
|
|
|
|
propagatedBuildInputs = [ pycodestyle ];
|
|
|
|
nativeCheckInputs = [
|
|
flake8
|
|
pycodestyle
|
|
pylama
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [ "flake8_import_order" ];
|
|
|
|
meta = with lib; {
|
|
description = "Flake8 and pylama plugin that checks the ordering of import statements";
|
|
homepage = "https://github.com/PyCQA/flake8-import-order";
|
|
changelog = "https://github.com/PyCQA/flake8-import-order/blob/${version}/CHANGELOG.rst";
|
|
license = with licenses; [
|
|
lgpl3
|
|
mit
|
|
];
|
|
maintainers = [ ];
|
|
};
|
|
}
|