blob: cff2997e78ec398d4e281f1e3be5348dbef4caf1 (
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
51
52
53
54
55
56
57
58
59
60
61
62
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
packaging,
pytestCheckHook,
requests,
sh,
}:
buildPythonPackage rec {
pname = "anybadge";
version = "1.16.0";
pyproject = true;
src = fetchFromGitHub {
owner = "jongracecox";
repo = "anybadge";
tag = "v${version}";
hash = "sha256-9qGmiIGzVdWHMyurMqTqEz+NKYlc/5zt6HPsssCH4Pk=";
};
postPatch = ''
substituteInPlace setup.py \
--replace-fail '=get_version(),' "='$version',"
'';
build-system = [
setuptools
];
dependencies = [
packaging
];
nativeCheckInputs = [
pytestCheckHook
requests
sh
];
disabledTests = [
# Comparison of CLI output fails
"test_module_same_output_as_main_cli"
];
disabledTestPaths = [
# No anybadge-server
"tests/test_server.py"
];
pythonImportsCheck = [ "anybadge" ];
meta = {
description = "Python tool for generating badges for your projects";
homepage = "https://github.com/jongracecox/anybadge";
changelog = "https://github.com/jongracecox/anybadge/releases/tag/${src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fabiangd ];
};
}
|