1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 flit-core,
6 appdirs,
7 pytestCheckHook,
8}:
9
10let
11 version = "24.4.24";
12in
13
14buildPythonPackage {
15 pname = "fissix";
16 inherit version;
17 pyproject = true;
18
19 src = fetchFromGitHub {
20 owner = "amyreese";
21 repo = "fissix";
22 rev = "v${version}";
23 hash = "sha256-geGctke+1PWFqJyiH1pQ0zWj9wVIjV/SQ5njOOk9gOw=";
24 };
25
26 build-system = [ flit-core ];
27
28 dependencies = [ appdirs ];
29
30 nativeCheckInputs = [ pytestCheckHook ];
31
32 preCheck = ''
33 export HOME=$(mktemp -d)
34 '';
35
36 pythonImportsCheck = [ "fissix" ];
37
38 meta = {
39 description = "Backport of latest lib2to3, with enhancements";
40 homepage = "https://github.com/amyreese/fissix";
41 sourceProvenance = [ lib.sourceTypes.fromSource ];
42 license = lib.licenses.psfl;
43 maintainers = [ lib.maintainers.emily ];
44 };
45}