blob: 5f062b159e0516e167d6b14bfa0e8d58d84e7a70 (
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
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
pyyaml,
iso8601,
requests,
pycryptodome,
}:
buildPythonPackage rec {
pname = "pycarwings2";
version = "2.14";
format = "setuptools";
src = fetchFromGitHub {
owner = "filcole";
repo = "pycarwings2";
rev = "v${version}";
hash = "sha256-kqj/NZXqgPUsOnnzMPmIlICHek7RBxksmL3reNBK+bo=";
};
propagatedBuildInputs = [
pyyaml
iso8601
requests
pycryptodome
];
nativeCheckInputs = [ pytestCheckHook ];
postPatch = ''
substituteInPlace setup.py \
--replace "'pytest-runner'" ""
substituteInPlace setup.cfg \
--replace " --flake8 --cov=pycarwings2 --cache-clear --ignore=venv --verbose" ""
'';
disabledTests = [
# Test requires network access
"test_bad_password"
];
pythonImportsCheck = [ "pycarwings2" ];
meta = {
description = "Python library for interacting with the NissanConnect EV";
homepage = "https://github.com/filcole/pycarwings2";
changelog = "https://github.com/filcole/pycarwings2/releases/tag/v${version}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ fab ];
};
}
|