1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pyxdg,
6 setuptools,
7 versionCheckHook,
8 writableTmpDirAsHomeHook,
9}:
10
11buildPythonPackage rec {
12 pname = "scspell";
13 version = "2.3";
14 pyproject = true;
15
16 src = fetchFromGitHub {
17 owner = "myint";
18 repo = "scspell";
19 tag = "v${version}";
20 hash = "sha256-XiUdz+uHOJlqo+TWd1V/PvzkGJ2kPXzJJSe5Smfdgec=";
21 };
22
23 build-system = [ setuptools ];
24
25 dependencies = [
26 pyxdg
27 ];
28
29 nativeCheckInputs = [
30 versionCheckHook
31 writableTmpDirAsHomeHook
32 ];
33
34 versionCheckProgramArg = "--version";
35
36 pythonImportsCheck = [ "scspell" ];
37
38 meta = {
39 description = "Spell checker for source code";
40 homepage = "https://github.com/myint/scspell";
41 license = lib.licenses.gpl2;
42 maintainers = with lib.maintainers; [ guelakais ];
43 mainProgram = "scspell";
44 };
45}