python312Packages.osmnx: 1.9.3 → 2.0.0 (#360529)
[NixPkgs.git] / pkgs / development / python-modules / flynt / default.nix
blob24112171ffe738459232500b315a7f7907ba76d3
2   astor,
3   buildPythonPackage,
4   fetchFromGitHub,
5   hatchling,
6   lib,
7   pytestCheckHook,
8   pythonOlder,
9   tomli,
12 buildPythonPackage rec {
13   pname = "flynt";
14   version = "1.0.1";
15   pyproject = true;
17   disabled = pythonOlder "3.7";
19   src = fetchFromGitHub {
20     owner = "ikamensh";
21     repo = "flynt";
22     rev = "refs/tags/${version}";
23     hash = "sha256-UHY4UDBHcP3ARikktIehSUD3Dx8A0xpOnfKWWrLCsOY=";
24   };
26   build-system = [ hatchling ];
28   propagatedBuildInputs = [ astor ] ++ lib.optionals (pythonOlder "3.11") [ tomli ];
30   nativeCheckInputs = [ pytestCheckHook ];
32   pythonImportsCheck = [ "flynt" ];
34   disabledTests = [
35     # AssertionError
36     "test_fstringify"
37     "test_mixed_quote_types_unsafe"
38   ];
40   meta = with lib; {
41     description = "Tool to automatically convert old string literal formatting to f-strings";
42     homepage = "https://github.com/ikamensh/flynt";
43     changelog = "https://github.com/ikamensh/flynt/blob/${version}/CHANGELOG.md";
44     license = licenses.mit;
45     maintainers = with maintainers; [ cpcloud ];
46     mainProgram = "flynt";
47   };