Skip to content

Commit

Permalink
Merge pull request #177845 from fabaff/growattServer-bump
Browse files Browse the repository at this point in the history
python310Packages.growattserver: 1.2.0 -> 1.2.2
  • Loading branch information
fabaff authored Jun 16, 2022
2 parents 977b119 + 2b615ce commit af97e13
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions pkgs/development/python-modules/growattserver/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit af97e13

Please sign in to comment.