python3Packages.odp-amsterdam: init at 5.0.0

Renamed from garages-amsterdam.
This commit is contained in:
Martin Weinelt 2023-01-04 23:02:56 +01:00
parent 4920c82507
commit 1d06a93281
3 changed files with 18 additions and 9 deletions

View File

@ -1,28 +1,33 @@
{ lib
, aiohttp
, aresponses
, buildPythonPackage
, fetchFromGitHub
, poetry-core
, pythonOlder
, pytest-asyncio
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "garages-amsterdam";
version = "4.1.0";
pname = "odp-amsterdam";
version = "5.0.0";
format = "pyproject";
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "klaasnicolaas";
repo = "garages_amsterdam";
repo = "python-odp-amsterdam";
rev = "refs/tags/v${version}";
sha256 = "sha256-ZWp543msRAgn/fFplEt6saSNbZ2flC5gwjxrll4w0W0=";
hash = "sha256-zVnM4KYH4R6n2y9IAaYGOZVPnc8RuT/S2bseKJBO9bg=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace '"0.0.0"' '"${version}"'
sed -i '/addopts/d' pyproject.toml
'';
nativeBuildInputs = [
@ -33,11 +38,14 @@ buildPythonPackage rec {
aiohttp
];
# The only test requires network access
doCheck = false;
checkInputs = [
aresponses
pytest-asyncio
pytestCheckHook
];
pythonImportsCheck = [
"garages_amsterdam"
"odp_amsterdam"
];
meta = with lib; {

View File

@ -85,6 +85,7 @@ mapAliases ({
flask_testing = flask-testing; # added 2022-04-25
flask_wtf = flask-wtf; # added 2022-05-24
functorch = throw "functorch is now part of the torch package and has therefore been removed. See https://github.com/pytorch/functorch/releases/tag/v1.13.0 for more info."; # added 2022-12-01
garages-amsterdam = throw "garages-amsterdam has been renamed odp-amsterdam."; # added 2023-01-04
garminconnect-ha = garminconnect; # added 2022-02-05
gigalixir = throw "gigalixir has been promoted to a top-level attribute"; # Added 2022-10-02
gitdb2 = throw "gitdb2 has been deprecated, use gitdb instead."; # added 2020-03-14

View File

@ -3622,8 +3622,6 @@ self: super: with self; {
gast = callPackage ../development/python-modules/gast { };
garages-amsterdam = callPackage ../development/python-modules/garages-amsterdam { };
gatt = callPackage ../development/python-modules/gatt { };
gattlib = callPackage ../development/python-modules/gattlib {
@ -6452,6 +6450,8 @@ self: super: with self; {
odfpy = callPackage ../development/python-modules/odfpy { };
odp-amsterdam = callPackage ../development/python-modules/odp-amsterdam { };
offtrac = callPackage ../development/python-modules/offtrac { };
ofxclient = callPackage ../development/python-modules/ofxclient { };