git.iko.soy/typeable/nixpkgs
on master help sign in
flake8_3: init at 3.0.4

(cherry picked from commit 7026cdf9e9d0d221534238023b7efbf1f04547a5) (cherry picked from commit 0675eb1b5d82e986589e3fc6ed5ebf1b798c0e7e) (cherry picked from commit 3c88d3a9c4224801ba4ae34abac0a8d342640795) --- initializes a new version of flake8 as a seperate expression. Signed-off-by: Alexander Ried <ried@mytum.de>

commit0f63f35d6a04d35c3fa66057b38b941880d8e685 authorMartin Bornhold <martin@rhodecode.com> dateFri 30 Sep 2016, 13:31 (10 years ago) parent14510fd
2 files changed+51
pkgs/development/python-modules/flake8/move-pytest-config-to-pytest-ini.patch+22 pkgs/top-level/python-packages.nix+29
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 // {
1055710557 };
1055810558 };
1055910559
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+
1056010589 flaky = buildPythonPackage rec {
1056110590 name = "flaky-${version}";
1056210591 version = "3.1.0";