python39Packages.devolo-home-control-api: fix version number
This commit is contained in:
parent
829942fd95
commit
3af1bbfc68
1 changed files with 7 additions and 7 deletions
|
@ -5,6 +5,7 @@
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
, requests
|
, requests
|
||||||
|
, setuptools-scm
|
||||||
, websocket-client
|
, websocket-client
|
||||||
, zeroconf
|
, zeroconf
|
||||||
}:
|
}:
|
||||||
|
@ -21,6 +22,12 @@ buildPythonPackage rec {
|
||||||
sha256 = "sha256-N/48Q2IEL194vCzrPPuy+mRNejXfkoXy2t2oe0Y6ug4=";
|
sha256 = "sha256-N/48Q2IEL194vCzrPPuy+mRNejXfkoXy2t2oe0Y6ug4=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
setuptools-scm
|
||||||
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
requests
|
requests
|
||||||
zeroconf
|
zeroconf
|
||||||
|
@ -32,13 +39,6 @@ buildPythonPackage rec {
|
||||||
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 = [
|
disabledTests = [
|
||||||
"test__on_pong"
|
"test__on_pong"
|
||||||
|
|
Loading…
Reference in a new issue