My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/flake8-import-order/default.nix

25 lines
701 B

{ 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 ];
};
}