mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-14 06:00:33 +03:00
python3Packages.devolo-home-control-api: 0.16.0 -> 0.17.0
This commit is contained in:
parent
adced82568
commit
e6fd98076c
1 changed files with 18 additions and 10 deletions
|
@ -2,28 +2,26 @@
|
||||||
, aiohttp
|
, aiohttp
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, pytestCheckHook
|
|
||||||
, pytest-cov
|
|
||||||
, pytest-mock
|
, pytest-mock
|
||||||
|
, pytestCheckHook
|
||||||
|
, pythonOlder
|
||||||
, requests
|
, requests
|
||||||
, zeroconf
|
|
||||||
, websocket_client
|
, websocket_client
|
||||||
, pytest-runner
|
, zeroconf
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "devolo-home-control-api";
|
pname = "devolo-home-control-api";
|
||||||
version = "0.16.0";
|
version = "0.17.0";
|
||||||
|
disabled = pythonOlder "3.6";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "2Fake";
|
owner = "2Fake";
|
||||||
repo = "devolo_home_control_api";
|
repo = "devolo_home_control_api";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "19zzdbx0dxlm8pq0yk00nn9gqqblgpp16fgl7z6a98hsa6459zzb";
|
sha256 = "sha256-g82YmlxlBdyNn7KPU+k+J3/P7ABWMMdLXUpXWnCkdpM=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ pytest-runner ];
|
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
requests
|
requests
|
||||||
zeroconf
|
zeroconf
|
||||||
|
@ -32,12 +30,22 @@ buildPythonPackage rec {
|
||||||
|
|
||||||
checkInputs = [
|
checkInputs = [
|
||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
pytest-cov
|
|
||||||
pytest-mock
|
pytest-mock
|
||||||
];
|
];
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
# setup.py is not able to detect the version with setuptools_scm
|
||||||
|
substituteInPlace setup.py \
|
||||||
|
--replace "setuptools_scm" "" \
|
||||||
|
--replace 'use_scm_version=True' 'use_scm_version="${version}"'
|
||||||
|
'';
|
||||||
|
|
||||||
# Disable test that requires network access
|
# Disable test that requires network access
|
||||||
disabledTests = [ "test__on_pong" ];
|
disabledTests = [
|
||||||
|
"test__on_pong"
|
||||||
|
"TestMprm"
|
||||||
|
];
|
||||||
|
|
||||||
pythonImportsCheck = [ "devolo_home_control_api" ];
|
pythonImportsCheck = [ "devolo_home_control_api" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue