tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
python3Packages.pylit: init at 0.8.0
qbisi
8 months ago
c8bfdac6
bbbba8e2
+54
2 changed files
expand all
collapse all
unified
split
pkgs
development
python-modules
pylit
default.nix
top-level
python-packages.nix
+52
pkgs/development/python-modules/pylit/default.nix
···
1
1
+
{
2
2
+
lib,
3
3
+
buildPythonPackage,
4
4
+
fetchFromGitea,
5
5
+
flit-core,
6
6
+
pytestCheckHook,
7
7
+
}:
8
8
+
9
9
+
buildPythonPackage rec {
10
10
+
version = "0.8.0";
11
11
+
pname = "pylit";
12
12
+
pyproject = true;
13
13
+
14
14
+
src = fetchFromGitea {
15
15
+
domain = "codeberg.org";
16
16
+
owner = "milde";
17
17
+
repo = "pylit";
18
18
+
tag = version;
19
19
+
hash = "sha256-wr2Gz5DCeCVULe9k/DHd+Jhbfc4q4wSoJrcWaJUvWWw=";
20
20
+
# fix hash mismatch on linux/darwin platforms
21
21
+
postFetch = ''
22
22
+
rm -f $out/doc/logo/py{L,l}it-bold-framed.svg
23
23
+
'';
24
24
+
};
25
25
+
26
26
+
# replace legacy nose module with pytest
27
27
+
postPatch = ''
28
28
+
substituteInPlace test/{pylit,pylit_ui}_test.py \
29
29
+
--replace-fail "import nose" "import pytest" \
30
30
+
--replace-fail "nose.runmodule()" "pytest.main()"
31
31
+
'';
32
32
+
33
33
+
build-system = [
34
34
+
flit-core
35
35
+
];
36
36
+
37
37
+
pythonImportsCheck = [ "pylit" ];
38
38
+
39
39
+
nativeCheckInputs = [
40
40
+
pytestCheckHook
41
41
+
];
42
42
+
43
43
+
pytestFlagsArray = [ "test" ];
44
44
+
45
45
+
meta = {
46
46
+
homepage = "https://codeberg.org/milde/pylit";
47
47
+
description = "Bidirectional text/code converter";
48
48
+
mainProgram = "pylit";
49
49
+
license = lib.licenses.gpl3Plus;
50
50
+
maintainers = with lib.maintainers; [ qbisi ];
51
51
+
};
52
52
+
}
+2
pkgs/top-level/python-packages.nix
···
12649
12649
12650
12650
pylion = callPackage ../development/python-modules/pylion { };
12651
12651
12652
12652
+
pylit = callPackage ../development/python-modules/pylit { };
12653
12653
+
12652
12654
pylitejet = callPackage ../development/python-modules/pylitejet { };
12653
12655
12654
12656
pylitterbot = callPackage ../development/python-modules/pylitterbot { };