mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-14 01:33:10 +00:00
python311Packages.raincloudy: refactor
This commit is contained in:
parent
3340b563cf
commit
595501a3a1
@ -19,33 +19,33 @@
|
|||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "raincloudy";
|
pname = "raincloudy";
|
||||||
version = "1.2.0";
|
version = "1.2.0";
|
||||||
format = "setuptools";
|
pypriject = true;
|
||||||
|
|
||||||
disabled = pythonOlder "3.7";
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "vanstinator";
|
owner = "vanstinator";
|
||||||
repo = pname;
|
repo = "raincloudy";
|
||||||
rev = "refs/tags/${version}";
|
rev = "refs/tags/${version}";
|
||||||
hash = "sha256-qCkBVirM09iA1sXiOB9FJns8bHjQq7rRk8XbRWrtBDI=";
|
hash = "sha256-qCkBVirM09iA1sXiOB9FJns8bHjQq7rRk8XbRWrtBDI=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
|
||||||
setuptools
|
|
||||||
setuptools-scm
|
|
||||||
];
|
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
# https://github.com/vanstinator/raincloudy/pull/60
|
# https://github.com/vanstinator/raincloudy/pull/60
|
||||||
substituteInPlace setup.py \
|
substituteInPlace setup.py \
|
||||||
--replace "bs4" "beautifulsoup4" \
|
--replace-fail "bs4" "beautifulsoup4" \
|
||||||
|
|
||||||
# fix raincloudy.aio package discovery, by relying on
|
# fix raincloudy.aio package discovery, by relying on
|
||||||
# autodiscovery instead.
|
# autodiscovery instead.
|
||||||
sed -i '/packages=/d' setup.py
|
sed -i '/packages=/d' setup.py
|
||||||
'';
|
'';
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
build-system = [
|
||||||
|
setuptools
|
||||||
|
setuptools-scm
|
||||||
|
];
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
aiohttp
|
aiohttp
|
||||||
requests
|
requests
|
||||||
beautifulsoup4
|
beautifulsoup4
|
||||||
@ -74,7 +74,8 @@ buildPythonPackage rec {
|
|||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Module to interact with Melnor RainCloud Smart Garden Watering Irrigation Timer";
|
description = "Module to interact with Melnor RainCloud Smart Garden Watering Irrigation Timer";
|
||||||
homepage = "https://github.com/vanstinator/raincloudy";
|
homepage = "https://github.com/vanstinator/raincloudy";
|
||||||
license = with licenses; [ asl20 ];
|
changelog = "https://github.com/vanstinator/raincloudy/releases/tag/${version}";
|
||||||
|
license = licenses.asl20;
|
||||||
maintainers = with maintainers; [ fab ];
|
maintainers = with maintainers; [ fab ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user