python3Packages.weconnect: init at 0.26.0
This commit is contained in:
parent
c9c22c593a
commit
3a75d8fe4d
2 changed files with 60 additions and 0 deletions
58
pkgs/development/python-modules/weconnect/default.nix
Normal file
58
pkgs/development/python-modules/weconnect/default.nix
Normal file
|
@ -0,0 +1,58 @@
|
|||
{ lib
|
||||
, ascii-magic
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pillow
|
||||
, pytest-httpserver
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, requests
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "weconnect";
|
||||
version = "0.26.0";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "tillsteinbach";
|
||||
repo = "WeConnect-python";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-30guJudGOY8WAYupX89hx6mFwfAPASnKMSa+0kDbtfQ=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
ascii-magic
|
||||
pillow
|
||||
requests
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
pytest-httpserver
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace weconnect/__version.py \
|
||||
--replace "develop" "${version}"
|
||||
substituteInPlace setup.py \
|
||||
--replace "setup_requires=SETUP_REQUIRED," "setup_requires=[]," \
|
||||
--replace "tests_require=TEST_REQUIRED," "tests_require=[],"
|
||||
substituteInPlace pytest.ini \
|
||||
--replace "--cov=weconnect --cov-config=.coveragerc --cov-report html" "" \
|
||||
--replace "pytest-cov" ""
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [
|
||||
"weconnect"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python client for the Volkswagen WeConnect Services";
|
||||
homepage = "https://github.com/tillsteinbach/WeConnect-python";
|
||||
license = with licenses; [ mit ];
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
|
@ -10074,6 +10074,8 @@ in {
|
|||
|
||||
webthing = callPackage ../development/python-modules/webthing { };
|
||||
|
||||
weconnect = callPackage ../development/python-modules/weconnect { };
|
||||
|
||||
werkzeug = callPackage ../development/python-modules/werkzeug { };
|
||||
|
||||
werkzeug1 = callPackage ../development/python-modules/werkzeug/1.nix { };
|
||||
|
|
Loading…
Reference in a new issue