blob: 2e13114d3dd4552249a2ba6838e84f526fd6d038 (
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
44
45
46
47
48
49
50
|
{
lib,
buildPythonPackage,
colorama,
fetchPypi,
pillow,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "ascii-magic";
version = "2.3.0";
format = "setuptools";
src = fetchPypi {
pname = "ascii_magic";
inherit version;
hash = "sha256-PtQaHLFn3u1cz8YotmnzWjoD9nvdctzBi+X/2KJkPYU=";
};
propagatedBuildInputs = [
colorama
pillow
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "ascii_magic" ];
preCheck = ''
cd tests
'';
disabledTests = [
# Test requires network access
"test_from_url"
"test_quick_test"
"test_wrong_url"
# No clipboard in the sandbox
"test_from_clipboard"
];
meta = {
description = "Python module to converts pictures into ASCII art";
homepage = "https://github.com/LeandroBarone/python-ascii_magic";
changelog = "https://github.com/LeandroBarone/python-ascii_magic#changelog";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};
}
|