Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python312Packages.aioflo: refactor #352972

Merged
merged 1 commit into from
Nov 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 14 additions & 13 deletions pkgs/development/python-modules/aioflo/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,34 +15,29 @@
buildPythonPackage rec {
pname = "aioflo";
version = "2021.11.0";
format = "pyproject";
pyproject = true;

disabled = pythonOlder "3.6";
disabled = pythonOlder "3.9";

src = fetchFromGitHub {
owner = "bachya";
repo = pname;
rev = version;
repo = "aioflo";
rev = "refs/tags/${version}";
hash = "sha256-7NrOoc1gi8YzZaKvCnHnzAKPlMnMhqxjdyZGN5H/8TQ=";
};

patches = [
# This patch removes references to setuptools and wheel that are no longer
# necessary and changes poetry to poetry-core, so that we don't need to add
# unnecessary nativeBuildInputs.
#
# https://github.com/bachya/aioflo/pull/65
#
(fetchpatch {
# Clean-up, https://github.com/bachya/aioflo/pull/65
name = "clean-up-build-dependencies.patch";
url = "https://github.com/bachya/aioflo/commit/f38d3f6427777ab0eeb56177943679e2570f0634.patch";
hash = "sha256-iLgklhEZ61rrdzQoO6rp1HGZcqLsqGNitwIiPNLNHQ4=";
})
];

nativeBuildInputs = [ poetry-core ];
build-system = [ poetry-core ];

propagatedBuildInputs = [ aiohttp ];
dependencies = [ aiohttp ];

__darwinAllowLocalNetworking = true;

Expand All @@ -55,10 +50,16 @@ buildPythonPackage rec {

pythonImportsCheck = [ "aioflo" ];

disabledTests = [
# test is out-dated
"test_system_modes"
];

meta = with lib; {
description = "Python library for Flo by Moen Smart Water Detectors";
homepage = "https://github.com/bachya/aioflo";
license = with licenses; [ mit ];
changelog = "https://github.com/bachya/aioflo/releases/tag/${version}";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}