summary refs log tree commit diff
diff options
context:
space:
mode:
authorSandro <sandro.jaeckel@gmail.com>2021-06-01 18:27:44 +0200
committerGitHub <noreply@github.com>2021-06-01 18:27:44 +0200
commit38e88107f6e8dd0e2d88ca595e2131b96027e53a (patch)
treeb4bd12548d8e3d5d11c2d84dd039b5bcc00e5b82
parent4519da897bbdcf3435b0b26975c2c3688f198703 (diff)
parent626280bf74ae35094e3e86702b009f2e57050b1a (diff)
downloadnixpkgs-38e88107f6e8dd0e2d88ca595e2131b96027e53a.tar
nixpkgs-38e88107f6e8dd0e2d88ca595e2131b96027e53a.tar.gz
nixpkgs-38e88107f6e8dd0e2d88ca595e2131b96027e53a.tar.bz2
nixpkgs-38e88107f6e8dd0e2d88ca595e2131b96027e53a.tar.lz
nixpkgs-38e88107f6e8dd0e2d88ca595e2131b96027e53a.tar.xz
nixpkgs-38e88107f6e8dd0e2d88ca595e2131b96027e53a.tar.zst
nixpkgs-38e88107f6e8dd0e2d88ca595e2131b96027e53a.zip
Merge pull request #123177 from fabaff/garages-amsterdam
-rw-r--r--pkgs/development/python-modules/garages-amsterdam/default.nix35
-rw-r--r--pkgs/top-level/python-packages.nix2
2 files changed, 37 insertions, 0 deletions
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 6d5de034b50..7fa25d7f399 100644
--- a/pkgs/top-level/python-packages.nix
+++ b/pkgs/top-level/python-packages.nix
@@ -2678,6 +2678,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 { };