mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-20 12:42:24 +00:00
Merge pull request #177845 from fabaff/growattServer-bump
python310Packages.growattserver: 1.2.0 -> 1.2.2
This commit is contained in:
commit
af97e1313d
|
@ -7,31 +7,28 @@
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "growattserver";
|
pname = "growattserver";
|
||||||
version = "1.2.0";
|
version = "1.2.2";
|
||||||
disabled = pythonOlder "3.6";
|
format = "setuptools";
|
||||||
|
|
||||||
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "indykoning";
|
owner = "indykoning";
|
||||||
repo = "PyPi_GrowattServer";
|
repo = "PyPi_GrowattServer";
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "0v9clmz4qg6krmbsbfsrhsan824y2mqvwxsxb0fzfgaszxwkpm30";
|
hash = "sha256-dS5Ng89aYzfegdFlyt1eo7vhva2ME77pQV2hkd/iNq8=";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
requests
|
requests
|
||||||
];
|
];
|
||||||
|
|
||||||
postPatch = ''
|
|
||||||
# https://github.com/indykoning/PyPi_GrowattServer/issues/2
|
|
||||||
substituteInPlace setup.py \
|
|
||||||
--replace "tag = os.environ['LATEST_TAG']" "" \
|
|
||||||
--replace "version=tag," 'version="${version}",'
|
|
||||||
'';
|
|
||||||
|
|
||||||
# Project has no tests
|
# Project has no tests
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
pythonImportsCheck = [ "growattServer" ];
|
pythonImportsCheck = [
|
||||||
|
"growattServer"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Python package to retrieve information from Growatt units";
|
description = "Python package to retrieve information from Growatt units";
|
||||||
|
|
Loading…
Reference in a new issue