ansible-later: 2.0.22 -> 2.0.23
[NixPkgs.git] / pkgs / development / python-modules / pycarwings2 / default.nix
blobe404475e93ba146af86e89fdf488145a4d161a4d
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , pytestCheckHook
5 , pythonOlder
6 , pyyaml
7 , iso8601
8 , requests
9 , pycryptodome
12 buildPythonPackage rec {
13   pname = "pycarwings2";
14   version = "2.13";
15   format = "setuptools";
17   disabled = pythonOlder "3.5";
19   src = fetchFromGitHub {
20     owner = "filcole";
21     repo = pname;
22     rev = "v${version}";
23     sha256 = "04k1la7wix6sp668nqpwdhd3057b2bzcz7h2b9a57cxlifl8pjxf";
24   };
26   propagatedBuildInputs = [
27     pyyaml
28     iso8601
29     requests
30     pycryptodome
31   ];
33   checkInputs = [
34     pytestCheckHook
35   ];
37   postPatch = ''
38     substituteInPlace setup.py \
39       --replace "'pytest-runner'" ""
40     substituteInPlace setup.cfg \
41       --replace " --flake8 --cov=pycarwings2 --cache-clear --ignore=venv --verbose" ""
42   '';
44   disabledTests = [
45     # Test requires network access
46     "test_bad_password"
47   ];
49   pythonImportsCheck = [
50     "pycarwings2"
51   ];
53   meta = with lib; {
54     description = "Python library for interacting with the NissanConnect EV";
55     homepage = "https://github.com/filcole/pycarwings2";
56     license = licenses.asl20;
57     maintainers = with maintainers; [ fab ];
58   };