blob: 02db0677612794f3f969d19deb4c6cf42139f7e2 (
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
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
setuptools,
setuptools-scm,
dataclasses-json,
requests,
pytestCheckHook,
pytest-xdist,
requests-mock,
syrupy,
}:
buildPythonPackage rec {
pname = "pyecotrend-ista";
version = "3.5.0";
pyproject = true;
disabled = pythonOlder "3.11";
src = fetchFromGitHub {
owner = "Ludy87";
repo = "pyecotrend-ista";
tag = version;
hash = "sha256-O5HU0U19E+cS1/UVYouxbyTBNjenJw9kkH80GCZ04cw=";
};
postPatch = ''
sed -i "/addopts =/d" pyproject.toml
'';
build-system = [
setuptools
setuptools-scm
];
dependencies = [
dataclasses-json
requests
];
nativeCheckInputs = [
pytestCheckHook
pytest-xdist
requests-mock
syrupy
];
pythonImportsCheck = [ "pyecotrend_ista" ];
meta = {
changelog = "https://github.com/Ludy87/pyecotrend-ista/releases/tag/${version}";
description = "Unofficial python library for the pyecotrend-ista API";
homepage = "https://github.com/Ludy87/pyecotrend-ista";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ oynqr ];
};
}
|