aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/development/python-modules/twentemilieu/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'infra/libkookie/nixpkgs/pkgs/development/python-modules/twentemilieu/default.nix')
-rw-r--r--infra/libkookie/nixpkgs/pkgs/development/python-modules/twentemilieu/default.nix43
1 files changed, 43 insertions, 0 deletions
diff --git a/infra/libkookie/nixpkgs/pkgs/development/python-modules/twentemilieu/default.nix b/infra/libkookie/nixpkgs/pkgs/development/python-modules/twentemilieu/default.nix
new file mode 100644
index 000000000000..fb5617321747
--- /dev/null
+++ b/infra/libkookie/nixpkgs/pkgs/development/python-modules/twentemilieu/default.nix
@@ -0,0 +1,43 @@
+{ lib
+, buildPythonPackage
+, pythonOlder
+, fetchFromGitHub
+, aiohttp
+, yarl
+, aresponses
+, pytest-asyncio
+, pytestCheckHook
+}:
+
+buildPythonPackage rec {
+ pname = "twentemilieu";
+ version = "0.3.0";
+ disabled = pythonOlder "3.7";
+
+ src = fetchFromGitHub {
+ owner = "frenck";
+ repo = "python-twentemilieu";
+ rev = "v${version}";
+ sha256 = "1ff35sh73m2s7fh4d8p2pjwdbfljswr8b8lpcjybz8nsh0286xph";
+ };
+
+ propagatedBuildInputs = [
+ aiohttp
+ yarl
+ ];
+
+ checkInputs = [
+ aresponses
+ pytest-asyncio
+ pytestCheckHook
+ ];
+
+ pythonImportsCheck = [ "twentemilieu" ];
+
+ meta = with lib; {
+ description = "Python client for Twente Milieu";
+ homepage = "https://github.com/frenck/python-twentemilieu";
+ license = with licenses; [ mit ];
+ maintainers = with maintainers; [ fab ];
+ };
+}