1
0
Fork 1
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:
Fabian Affolter 2022-06-16 12:04:19 +02:00 committed by GitHub
commit af97e1313d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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";