nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 buildPythonPackage,
3 fetchFromGitHub,
4 hatchling,
5 lib,
6 pytestCheckHook,
7 hatch-vcs,
8}:
9
10buildPythonPackage (finalAttrs: {
11 pname = "flynt";
12 version = "1.0.6";
13 pyproject = true;
14
15 src = fetchFromGitHub {
16 owner = "ikamensh";
17 repo = "flynt";
18 tag = finalAttrs.version;
19 hash = "sha256-SkkCA4fEHplt9HkEn+QOq4k9lW5qJeZzLZEbNEtKBSo=";
20 };
21
22 build-system = [
23 hatchling
24 hatch-vcs
25 ];
26
27 nativeCheckInputs = [ pytestCheckHook ];
28
29 pythonImportsCheck = [ "flynt" ];
30
31 disabledTests = [
32 # AssertionError
33 "test_fstringify"
34 "test_mixed_quote_types_unsafe"
35 ];
36
37 meta = {
38 description = "Tool to automatically convert old string literal formatting to f-strings";
39 homepage = "https://github.com/ikamensh/flynt";
40 changelog = "https://github.com/ikamensh/flynt/blob/${finalAttrs.src.tag}/CHANGELOG.md";
41 license = lib.licenses.mit;
42 maintainers = with lib.maintainers; [ cpcloud ];
43 mainProgram = "flynt";
44 };
45})