summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/textual-speedups/default.nix
blob: 83ace2e8fe7a71241c2d1ac9c8ec6bca8f542012 (plain)
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
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  rustPlatform,
}:

buildPythonPackage rec {
  pname = "textual-speedups";
  version = "0.2.1";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "willmcgugan";
    repo = "textual-speedups";
    tag = "v${version}";
    hash = "sha256-zsDA8qPpeiOlmL18p4pItEgXQjgrQEBVRJazrGJT9Bw=";
  };

  cargoDeps = rustPlatform.fetchCargoVendor {
    inherit pname version src;
    hash = "sha256-Bz4ocEziOlOX4z5F9EDry99YofeGyxL/6OTIf/WEgK4=";
  };

  nativeBuildInputs = [
    rustPlatform.cargoSetupHook
    rustPlatform.maturinBuildHook
  ];

  pythonImportsCheck = [ "textual_speedups" ];

  # No tests
  doCheck = false;

  meta = {
    description = "Optional Rust speedups for Textual";
    homepage = "https://github.com/willmcgugan/textual-speedups";
    # No license (yet?)
    # https://github.com/willmcgugan/textual-speedups/issues/2
    license = lib.licenses.unfree;
    maintainers = with lib.maintainers; [ GaetanLepage ];
  };
}