blob: 6201899cf07a0a7f3adc71f13419610aeb793002 (
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
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
fetchpatch2,
setuptools,
requests,
}:
buildPythonPackage rec {
pname = "nextcloudmonitor";
version = "1.5.2";
pyproject = true;
src = fetchFromGitHub {
owner = "meichthys";
repo = "nextcloud_monitor";
tag = "v${version}";
hash = "sha256-9iohznUmDusNY7iJZBcv9yn2wp3X5cS8n3Fbj/G1u0g=";
};
patches = [
(fetchpatch2 {
# https://github.com/meichthys/nextcloud_monitor/pull/10
url = "https://github.com/meichthys/nextcloud_monitor/commit/cf6191d148e0494de5ae3cbe8fc5ffdba71b6c21.patch";
hash = "sha256-BSTX5dw+k+ItT6qvpjLiDsH9rW1NmkaBeGO9TlNZZis=";
})
];
build-system = [ setuptools ];
dependencies = [ requests ];
# no tests implemented
doCheck = false;
pythonImportsCheck = [ "nextcloudmonitor" ];
meta = {
changelog = "https://github.com/meichthys/nextcloud_monitor/blob/${src.tag}/README.md#change-log";
description = "Python wrapper around nextcloud monitor api";
homepage = "https://github.com/meichthys/nextcloud_monitor";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ dotlambda ];
};
}
|