mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 03:17:13 +00:00
5c7c863f67
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/python3.7-flake8-import-order/versions
26 lines
699 B
Nix
26 lines
699 B
Nix
{ lib, buildPythonPackage, fetchPypi, isPy3k, enum34, pycodestyle, pytest, flake8, pylama }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "flake8-import-order";
|
|
version = "0.18.1";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "14kfvsagqc6lrplvf3x58ia6x744bk8fj91wmk0hcipa8naw73d2";
|
|
};
|
|
|
|
propagatedBuildInputs = [ pycodestyle ] ++ lib.optional (!isPy3k) enum34;
|
|
|
|
checkInputs = [ pytest flake8 pycodestyle pylama ];
|
|
|
|
checkPhase = ''
|
|
pytest --strict
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Flake8 and pylama plugin that checks the ordering of import statements";
|
|
homepage = https://github.com/PyCQA/flake8-import-order;
|
|
license = with licenses; [ lgpl3 mit ];
|
|
};
|
|
}
|