blob: 892c44b0b3b28fbc9330eb2f7a79c7d45ee8fab4 (
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
|
{ lib
, aiohttp
, buildPythonPackage
, colorlog
, fetchFromGitHub
, python-dateutil
, pythonOlder
, requests
, setuptools-scm
}:
buildPythonPackage rec {
pname = "pyisy";
version = "3.1.13";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "automicus";
repo = "PyISY";
rev = "refs/tags/v${version}";
hash = "sha256-FjreG+xjX8f68nUq/4HHEaYcUYjU/9sYvzmIN6kXezU=";
};
SETUPTOOLS_SCM_PRETEND_VERSION = version;
postPatch = ''
substituteInPlace setup.py \
--replace 'version_format="{tag}"' 'version="${version}"'
'';
nativeBuildInputs = [
setuptools-scm
];
propagatedBuildInputs = [
aiohttp
colorlog
python-dateutil
requests
];
# no tests implemented
doCheck = false;
pythonImportsCheck = [ "pyisy" ];
meta = with lib; {
description = "Python module to talk to ISY994 from UDI";
homepage = "https://github.com/automicus/PyISY";
changelog = "https://github.com/automicus/PyISY/releases/tag/v${version}";
license = licenses.asl20;
maintainers = with maintainers; [ dotlambda ];
};
}
|