blob: 09e83fa1caeba6bea97a101cd8d5313282b345c6 (
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
46
47
48
49
50
51
52
53
54
55
56
57
58
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
nh3,
pillow,
pytest-cov-stub,
pytestCheckHook,
pythonOlder,
regex,
setuptools-scm,
setuptools,
}:
buildPythonPackage rec {
pname = "textile";
version = "4.0.3";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "textile";
repo = "python-textile";
rev = "refs/tags/${version}";
hash = "sha256-KVDppsvX48loV9OJ70yqmQ5ZSypzcxrjH1j31DcyfM8=";
};
build-system = [
setuptools
setuptools-scm
];
dependencies = [
nh3
regex
];
optional-dependencies = {
imagesize = [ pillow ];
};
nativeCheckInputs = [
pytest-cov-stub
pytestCheckHook
];
pythonImportsCheck = [ "textile" ];
meta = with lib; {
description = "MOdule for generating web text";
homepage = "https://github.com/textile/python-textile";
changelog = "https://github.com/textile/python-textile/blob/${version}/CHANGELOG.textile";
license = licenses.bsd3;
maintainers = with maintainers; [ fab ];
mainProgram = "pytextile";
};
}
|