python311Packages.ambee: modernize

This commit is contained in:
Peder Bergebakken Sundt
2024-08-12 04:06:24 +02:00
parent aa94f8c8cf
commit 8b13d1ccb6
@@ -16,7 +16,7 @@ buildPythonPackage rec {
pname = "ambee";
version = "0.4.0";
disabled = pythonOlder "3.8";
format = "pyproject";
pyproject = true;
src = fetchFromGitHub {
owner = "frenck";
@@ -25,9 +25,9 @@ buildPythonPackage rec {
hash = "sha256-2wX2CLr6kdVw2AGPW6DmYI2OBfQFI/iWVorok2d3wx4=";
};
nativeBuildInputs = [ poetry-core ];
build-system = [ poetry-core ];
propagatedBuildInputs = [
dependencies = [
aiohttp
yarl
];
@@ -42,7 +42,7 @@ buildPythonPackage rec {
postPatch = ''
# Upstream doesn't set a version for the pyproject.toml
substituteInPlace pyproject.toml \
--replace "0.0.0" "${version}"
--replace-fail "0.0.0" "${version}"
'';
pythonImportsCheck = [ "ambee" ];