git.iko.soy/typeable/nixpkgs
on master help sign in
flake8_3: init at 3.0.4
0f63f35Martin Bornhold
pkgs/development/python-modules/flake8/move-pytest-config-to-pytest-ini.patchnew file+22
@@ -0,0 +1,22 @@
1+diff -r ad8325924f04 pytest.ini
2+--- /dev/null Thu Jan 01 00:00:00 1970 +0000
3++++ b/pytest.ini Fri Sep 30 12:28:39 2016 +0200
4+@@ -0,0 +1,4 @@
5++[pytest]
6++-norecursedirs = .git .* *.egg* old docs dist build
7++-addopts = -rwv
8++
9+diff -r ad8325924f04 setup.cfg
10+--- a/setup.cfg Fri Sep 30 09:22:39 2016 +0200
11++++ b/setup.cfg Fri Sep 30 12:28:39 2016 +0200
12+@@ -12,10 +12,6 @@
13+ pycodestyle >= 2.0.0, < 2.1.0
14+ mccabe >= 0.5.0, < 0.6.0
15+
16+-[pytest]
17+-norecursedirs = .git .* *.egg* old docs dist build
18+-addopts = -rw
19+-
20+ [egg_info]
21+ tag_build =
22+ tag_date = 0
pkgs/top-level/python-packages.nix+29
@@ -10557,6 +10557,35 @@ in modules // {
10557 };
10557 };
10558 };
10558 };
10559
10559
10560+ flake8_3 = buildPythonPackage rec {
10561+ name = "flake8-${version}";
10562+ version = "3.0.4";
10563+
10564+ src = pkgs.fetchurl {
10565+ url = "mirror://pypi/f/flake8/${name}.tar.gz";
10566+ sha256 = "03cpdrjxh0fyi2qpdxbbrmxw7whiq3xr3p958gr6yzghk34i1hml";
10567+ };
10568+
10569+ buildInputs = with self; [ nose mock pytestrunner pytest ];
10570+ propagatedBuildInputs = with self; [ pyflakes mccabe enum34 configparser pycodestyle ];
10571+
10572+ patches = [
10573+ ../development/python-modules/flake8/move-pytest-config-to-pytest-ini.patch
10574+ ];
10575+
10576+ # Tests fail due to missing ini file.
10577+ preCheck = ''
10578+ touch tox.ini
10579+ '';
10580+
10581+ meta = {
10582+ description = "Code checking using pep8 and pyflakes";
10583+ homepage = http://pypi.python.org/pypi/flake8;
10584+ license = licenses.mit;
10585+ maintainers = with maintainers; [ ];
10586+ };
10587+ };
10588+
10560 flaky = buildPythonPackage rec {
10589 flaky = buildPythonPackage rec {
10561 name = "flaky-${version}";
10590 name = "flaky-${version}";
10562 version = "3.1.0";
10591 version = "3.1.0";