From ced8363582fbfaa83bf2e75583cbea9ce7f9a1a4 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sun, 1 May 2022 02:58:24 +0000 Subject: [PATCH 1/2] python310Packages.flake8-debugger: 4.0.0 -> 4.1.2 --- pkgs/development/python-modules/flake8-debugger/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/flake8-debugger/default.nix b/pkgs/development/python-modules/flake8-debugger/default.nix index 67f4ea529f10..41f97be88787 100644 --- a/pkgs/development/python-modules/flake8-debugger/default.nix +++ b/pkgs/development/python-modules/flake8-debugger/default.nix @@ -7,12 +7,12 @@ buildPythonPackage rec { pname = "flake8-debugger"; - version = "4.0.0"; + version = "4.1.2"; disabled = isPy27; src = fetchPypi { inherit pname version; - sha256 = "e43dc777f7db1481db473210101ec2df2bd39a45b149d7218a618e954177eda6"; + sha256 = "sha256-UrACVglB422b+Ab8olI9x/uFYKKV1fGm4VrC3tenOEA="; }; propagatedBuildInputs = [ flake8 pycodestyle six ]; From 00e1dd6c908720230c357f6004d0fe96a2ed9b00 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 1 May 2022 09:54:33 +0200 Subject: [PATCH 2/2] python310Packages.flake8-debugger: enable tests - add pythonImportsCheck - disable on older Python releases --- .../flake8-debugger/default.nix | 35 ++++++++++++------- 1 file changed, 22 insertions(+), 13 deletions(-) diff --git a/pkgs/development/python-modules/flake8-debugger/default.nix b/pkgs/development/python-modules/flake8-debugger/default.nix index 41f97be88787..55858a9eaf2c 100644 --- a/pkgs/development/python-modules/flake8-debugger/default.nix +++ b/pkgs/development/python-modules/flake8-debugger/default.nix @@ -1,32 +1,41 @@ -{ lib, fetchPypi, buildPythonPackage, isPy27 +{ lib +, buildPythonPackage +, fetchPypi , flake8 , pycodestyle -, six , pytestCheckHook +, pythonOlder }: buildPythonPackage rec { pname = "flake8-debugger"; version = "4.1.2"; - disabled = isPy27; + format = "setuptools"; + + disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; - sha256 = "sha256-UrACVglB422b+Ab8olI9x/uFYKKV1fGm4VrC3tenOEA="; + hash = "sha256-UrACVglB422b+Ab8olI9x/uFYKKV1fGm4VrC3tenOEA="; }; - propagatedBuildInputs = [ flake8 pycodestyle six ]; + propagatedBuildInputs = [ + flake8 + pycodestyle + ]; - checkInputs = [ pytestCheckHook ]; + checkInputs = [ + pytestCheckHook + ]; - # Tests not included in PyPI tarball - # FIXME: Remove when https://github.com/JBKahn/flake8-debugger/pull/15 is merged - doCheck = false; + pythonImportsCheck = [ + "flake8_debugger" + ]; - meta = { - homepage = "https://github.com/jbkahn/flake8-debugger"; + meta = with lib; { description = "ipdb/pdb statement checker plugin for flake8"; - maintainers = with lib.maintainers; [ johbo ]; - license = lib.licenses.mit; + homepage = "https://github.com/jbkahn/flake8-debugger"; + license = licenses.mit; + maintainers = with maintainers; [ johbo ]; }; }