mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-20 04:31:52 +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 {
|
||||
pname = "growattserver";
|
||||
version = "1.2.0";
|
||||
disabled = pythonOlder "3.6";
|
||||
version = "1.2.2";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "indykoning";
|
||||
repo = "PyPi_GrowattServer";
|
||||
rev = version;
|
||||
sha256 = "0v9clmz4qg6krmbsbfsrhsan824y2mqvwxsxb0fzfgaszxwkpm30";
|
||||
hash = "sha256-dS5Ng89aYzfegdFlyt1eo7vhva2ME77pQV2hkd/iNq8=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
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
|
||||
doCheck = false;
|
||||
|
||||
pythonImportsCheck = [ "growattServer" ];
|
||||
pythonImportsCheck = [
|
||||
"growattServer"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python package to retrieve information from Growatt units";
|
||||
|
|
Loading…
Reference in a new issue