From 626280bf74ae35094e3e86702b009f2e57050b1a Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 29 May 2021 14:31:35 +0200 Subject: [PATCH] python3Packages.garages-amsterdam: init at 2.1.0 --- .../garages-amsterdam/default.nix | 35 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 37 insertions(+) create mode 100644 pkgs/development/python-modules/garages-amsterdam/default.nix diff --git a/pkgs/development/python-modules/garages-amsterdam/default.nix b/pkgs/development/python-modules/garages-amsterdam/default.nix new file mode 100644 index 00000000000..eeb68b9bbbd --- /dev/null +++ b/pkgs/development/python-modules/garages-amsterdam/default.nix @@ -0,0 +1,35 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, pythonOlder +, aiohttp +}: + +buildPythonPackage rec { + pname = "garages-amsterdam"; + version = "2.1.0"; + disabled = pythonOlder "3.7"; + + src = fetchFromGitHub { + owner = "klaasnicolaas"; + repo = "garages_amsterdam"; + rev = version; + sha256 = "1lg66g0im6v0m294j82229n2b7bhs6kkrp0d9nh87k2rz7zgllil"; + }; + + propagatedBuildInputs = [ + aiohttp + ]; + + # The only test requires network access + doCheck = false; + + pythonImportsCheck = [ "garages_amsterdam" ]; + + meta = with lib; { + description = "Python client for getting garage occupancy in Amsterdam"; + homepage = "https://github.com/klaasnicolaas/garages_amsterdam"; + license = licenses.mit; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 3ecf4494ff4..95e14056486 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2624,6 +2624,8 @@ in { gast = callPackage ../development/python-modules/gast { }; + garages-amsterdam = callPackage ../development/python-modules/garages-amsterdam { }; + gcovr = callPackage ../development/python-modules/gcovr { }; gcsfs = callPackage ../development/python-modules/gcsfs { };