about summary refs log tree commit diff
path: root/pkgs/development/python-modules/fissix/default.nix
blob: d600d8410795fe0c30b0f4eaa6265585b0ca7335 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  flit-core,
  appdirs,
  pytestCheckHook,
}:

let
  version = "24.4.24";
in

buildPythonPackage {
  pname = "fissix";
  inherit version;
  pyproject = true;

  src = fetchFromGitHub {
    owner = "amyreese";
    repo = "fissix";
    rev = "v${version}";
    hash = "sha256-geGctke+1PWFqJyiH1pQ0zWj9wVIjV/SQ5njOOk9gOw=";
  };

  build-system = [ flit-core ];

  dependencies = [ appdirs ];

  nativeCheckInputs = [ pytestCheckHook ];

  preCheck = ''
    export HOME=$(mktemp -d)
  '';

  pythonImportsCheck = [ "fissix" ];

  meta = {
    description = "Backport of latest lib2to3, with enhancements";
    homepage = "https://github.com/amyreese/fissix";
    sourceProvenance = [ lib.sourceTypes.fromSource ];
    license = lib.licenses.psfl;
    maintainers = [ lib.maintainers.emily ];
  };
}