linux_xanmod: 5.11.14 -> 5.11.15
[NixPkgs.git] / pkgs / development / python-modules / flake8-import-order / default.nix
blob25aa995f91222fa99b1a5e4e59cf36fa05a16729
1 { lib, buildPythonPackage, fetchPypi, isPy3k, enum34, pycodestyle, pytest, flake8, pylama }:
3 buildPythonPackage rec {
4   pname = "flake8-import-order";
5   version = "0.18.1";
7   src = fetchPypi {
8     inherit pname version;
9     sha256 = "14kfvsagqc6lrplvf3x58ia6x744bk8fj91wmk0hcipa8naw73d2";
10   };
12   propagatedBuildInputs = [ pycodestyle ] ++ lib.optional (!isPy3k) enum34;
14   checkInputs = [ pytest flake8 pycodestyle pylama ];
16   checkPhase = ''
17     pytest --strict
18   '';
20   meta = with lib; {
21     description = "Flake8 and pylama plugin that checks the ordering of import statements";
22     homepage = "https://github.com/PyCQA/flake8-import-order";
23     license = with licenses; [ lgpl3 mit ];
24   };