mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-21 21:09:00 +02:00
Merge pull request #140418 from fabaff/pycarwings2
This commit is contained in:
commit
72887032a3
59
pkgs/development/python-modules/pycarwings2/default.nix
Normal file
59
pkgs/development/python-modules/pycarwings2/default.nix
Normal file
|
@ -0,0 +1,59 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, pyyaml
|
||||
, iso8601
|
||||
, requests
|
||||
, pycryptodome
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pycarwings2";
|
||||
version = "2.11";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.5";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "filcole";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "0daqxnic7kphspqqq8a0bjp009l5a7d1k72q6cz43g7ca6wfq4b1";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
pyyaml
|
||||
iso8601
|
||||
requests
|
||||
pycryptodome
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
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 = with lib; {
|
||||
description = "Python library for interacting with the NissanConnect EV";
|
||||
homepage = "https://github.com/filcole/pycarwings2";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
|
@ -575,7 +575,7 @@
|
|||
"nightscout" = ps: with ps; [ ]; # missing inputs: py-nightscout
|
||||
"niko_home_control" = ps: with ps; [ ]; # missing inputs: niko-home-control
|
||||
"nilu" = ps: with ps; [ niluclient ];
|
||||
"nissan_leaf" = ps: with ps; [ ]; # missing inputs: pycarwings2
|
||||
"nissan_leaf" = ps: with ps; [ pycarwings2 ];
|
||||
"nmap_tracker" = ps: with ps; [ aiohttp-cors getmac ifaddr netmap ]; # missing inputs: mac-vendor-lookup
|
||||
"nmbs" = ps: with ps; [ ]; # missing inputs: pyrail
|
||||
"no_ip" = ps: with ps; [ ];
|
||||
|
|
|
@ -6063,6 +6063,8 @@ in {
|
|||
|
||||
pycares = callPackage ../development/python-modules/pycares { };
|
||||
|
||||
pycarwings2 = callPackage ../development/python-modules/pycarwings2 { };
|
||||
|
||||
pycategories = callPackage ../development/python-modules/pycategories { };
|
||||
|
||||
pycdio = callPackage ../development/python-modules/pycdio { };
|
||||
|
|
Loading…
Reference in a new issue