From 5d06e1f6568950180850497dc49f1788970791a3 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 24 Feb 2023 10:46:58 +0100 Subject: [PATCH 1/2] python310Packages.flake8-length: add changelog to meta --- .../python-modules/flake8-length/default.nix | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/flake8-length/default.nix b/pkgs/development/python-modules/flake8-length/default.nix index d81a9765bb0c..1c227041f1f7 100644 --- a/pkgs/development/python-modules/flake8-length/default.nix +++ b/pkgs/development/python-modules/flake8-length/default.nix @@ -20,18 +20,19 @@ buildPythonPackage rec { flake8 ]; + nativeCheckInputs = [ pytestCheckHook ]; + pythonImportsCheck = [ "flake8_length" ]; - nativeCheckInputs = [ pytestCheckHook ]; - pytestFlagsArray = [ "tests/" ]; - meta = { + meta = with lib; { description = "Flake8 plugin for a smart line length validation"; homepage = "https://github.com/orsinium-labs/flake8-length"; - license = lib.licenses.mit; - maintainers = with lib.maintainers; [ sauyon ]; + changelog = "https://github.com/orsinium-labs/flake8-length/releases/tag/${version}"; + license = licenses.mit; + maintainers = with maintainers; [ sauyon ]; }; } From 4e87222e18d11cfdbc142cc5c82620916dd1e8c1 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 24 Feb 2023 10:50:56 +0100 Subject: [PATCH 2/2] python310Packages.flake8-length: adjust build system --- .../python-modules/flake8-length/default.nix | 21 ++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/flake8-length/default.nix b/pkgs/development/python-modules/flake8-length/default.nix index 1c227041f1f7..348246a939ce 100644 --- a/pkgs/development/python-modules/flake8-length/default.nix +++ b/pkgs/development/python-modules/flake8-length/default.nix @@ -1,14 +1,17 @@ { lib , buildPythonPackage -, pythonOlder -, flake8 -, pytestCheckHook , fetchPypi +, flake8 +, flit-core +, pytestCheckHook +, pythonOlder }: buildPythonPackage rec { pname = "flake8-length"; version = "0.3.1"; + format = "pyproject"; + disabled = pythonOlder "3.6"; src = fetchPypi { @@ -16,17 +19,25 @@ buildPythonPackage rec { sha256 = "sha256-Dr1hTCU2G1STczXJsUPMGFYs1NpIAk1I95vxXsRTtRA="; }; + nativeBuildInputs = [ + flit-core + ]; + propagatedBuildInputs = [ flake8 ]; - nativeCheckInputs = [ pytestCheckHook ]; + nativeCheckInputs = [ + pytestCheckHook + ]; pythonImportsCheck = [ "flake8_length" ]; - pytestFlagsArray = [ "tests/" ]; + pytestFlagsArray = [ + "tests/" + ]; meta = with lib; { description = "Flake8 plugin for a smart line length validation";