python311Packages.aioambient: refactor

This commit is contained in:
Fabian Affolter 2023-12-18 14:50:45 +01:00 committed by GitHub
parent 1ede548b02
commit ae8dc82481
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,22 +16,17 @@
buildPythonPackage rec {
pname = "aioambient";
version = "2023.12.0";
format = "pyproject";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "bachya";
repo = pname;
repo = "aioambient";
rev = "refs/tags/${version}";
hash = "sha256-O9MlXtX7UzFN1w/vxpcZ/nRPDFPK5wFKBl42rhaAu94=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace 'websockets = ">=11.0.1"' 'websockets = "*"'
'';
nativeBuildInputs = [
poetry-core
];