diff options
author | github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> | 2024-05-03 00:13:16 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-03 00:13:16 +0000 |
commit | 26d2f291dffdcb7e5f40896be3fc3bc72538dbd0 (patch) | |
tree | 5eab6c80968fb769f5433bc2fa6b96f102d17701 /pkgs/development/python-modules/flynt/default.nix | |
parent | 2918b2c876b74d0ba5e333676ee86228f51c24e8 (diff) | |
parent | 172094c8c1f83ee7f6d7dd10e64fdc7da0e4ac3b (diff) |
Merge master into haskell-updates
Diffstat (limited to 'pkgs/development/python-modules/flynt/default.nix')
-rw-r--r-- | pkgs/development/python-modules/flynt/default.nix | 42 |
1 files changed, 28 insertions, 14 deletions
diff --git a/pkgs/development/python-modules/flynt/default.nix b/pkgs/development/python-modules/flynt/default.nix index 0e0b73d20f4ee..24112171ffe73 100644 --- a/pkgs/development/python-modules/flynt/default.nix +++ b/pkgs/development/python-modules/flynt/default.nix @@ -1,34 +1,48 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, astor -, pytestCheckHook +{ + astor, + buildPythonPackage, + fetchFromGitHub, + hatchling, + lib, + pytestCheckHook, + pythonOlder, + tomli, }: buildPythonPackage rec { pname = "flynt"; - version = "0.66"; - format = "setuptools"; + version = "1.0.1"; + pyproject = true; - disabled = pythonOlder "3.6"; + disabled = pythonOlder "3.7"; src = fetchFromGitHub { owner = "ikamensh"; repo = "flynt"; - rev = version; - hash = "sha256-DV433wqLjF5k4g8J7rj5gZfaw+Y4/TDOoFKo3eKDjZ4="; + rev = "refs/tags/${version}"; + hash = "sha256-UHY4UDBHcP3ARikktIehSUD3Dx8A0xpOnfKWWrLCsOY="; }; - propagatedBuildInputs = [ astor ]; + build-system = [ hatchling ]; + + propagatedBuildInputs = [ astor ] ++ lib.optionals (pythonOlder "3.11") [ tomli ]; nativeCheckInputs = [ pytestCheckHook ]; + pythonImportsCheck = [ "flynt" ]; + + disabledTests = [ + # AssertionError + "test_fstringify" + "test_mixed_quote_types_unsafe" + ]; + meta = with lib; { - description = "command line tool to automatically convert a project's Python code from old format style strings into Python 3.6+'s f-strings"; - mainProgram = "flynt"; + description = "Tool to automatically convert old string literal formatting to f-strings"; homepage = "https://github.com/ikamensh/flynt"; + changelog = "https://github.com/ikamensh/flynt/blob/${version}/CHANGELOG.md"; license = licenses.mit; maintainers = with maintainers; [ cpcloud ]; + mainProgram = "flynt"; }; } |