about summary refs log tree commit diff
path: root/pkgs/development/python-modules
diff options
context:
space:
mode:
authorSandro <sandro.jaeckel@gmail.com>2021-01-22 16:21:43 +0100
committerGitHub <noreply@github.com>2021-01-22 16:21:43 +0100
commit2b56a69386bcb582b161cc3a22caab918e48be1a (patch)
tree2f0b187bd73091673c8dd591eea92f5357e20196 /pkgs/development/python-modules
parentb60a6af8eda54f5c28ab8882785e2b4ab8c13ce7 (diff)
parent819ce289febdd02e15010ec4475db01a0a9ee061 (diff)
downloadnixlib-2b56a69386bcb582b161cc3a22caab918e48be1a.tar
nixlib-2b56a69386bcb582b161cc3a22caab918e48be1a.tar.gz
nixlib-2b56a69386bcb582b161cc3a22caab918e48be1a.tar.bz2
nixlib-2b56a69386bcb582b161cc3a22caab918e48be1a.tar.lz
nixlib-2b56a69386bcb582b161cc3a22caab918e48be1a.tar.xz
nixlib-2b56a69386bcb582b161cc3a22caab918e48be1a.tar.zst
nixlib-2b56a69386bcb582b161cc3a22caab918e48be1a.zip
Merge pull request #110453 from fabaff/bsblan
Diffstat (limited to 'pkgs/development/python-modules')
-rw-r--r--pkgs/development/python-modules/bsblan/default.nix53
-rw-r--r--pkgs/development/python-modules/cattrs/default.nix35
2 files changed, 88 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/bsblan/default.nix b/pkgs/development/python-modules/bsblan/default.nix
new file mode 100644
index 000000000000..f670bebc8ed3
--- /dev/null
+++ b/pkgs/development/python-modules/bsblan/default.nix
@@ -0,0 +1,53 @@
+{ lib
+, buildPythonPackage
+, fetchFromGitHub
+, pytestCheckHook
+, aresponses
+, coverage
+, mypy
+, pytest-asyncio
+, pytest-cov
+, pytest-mock
+, aiohttp
+, attrs
+, cattrs
+, yarl
+}:
+
+buildPythonPackage rec {
+  pname = "bsblan";
+  version = "0.4.1";
+
+  src = fetchFromGitHub {
+    owner = "liudger";
+    repo = "python-bsblan";
+    rev = "v.${version}";
+    sha256 = "0vyg9vsrs34jahlav83qp2djv81p3ks31qz4qh46zdij2nx7l1fv";
+  };
+
+  propagatedBuildInputs = [
+    aiohttp
+    attrs
+    cattrs
+    yarl
+  ];
+
+  checkInputs = [
+    aresponses
+    coverage
+    mypy
+    pytest-asyncio
+    pytest-cov
+    pytest-mock
+    pytestCheckHook
+  ];
+
+  pythonImportsCheck = [ "bsblan" ];
+
+  meta = with lib; {
+    description = "Python client for BSB-Lan";
+    homepage = "https://github.com/liudger/python-bsblan";
+    license = with licenses; [ mit ];
+    maintainers = with maintainers; [ fab ];
+  };
+}
diff --git a/pkgs/development/python-modules/cattrs/default.nix b/pkgs/development/python-modules/cattrs/default.nix
new file mode 100644
index 000000000000..a48e29b827b7
--- /dev/null
+++ b/pkgs/development/python-modules/cattrs/default.nix
@@ -0,0 +1,35 @@
+{ lib
+, attrs
+, buildPythonPackage
+, fetchFromGitHub
+, hypothesis
+, pytestCheckHook
+}:
+
+buildPythonPackage rec {
+  pname = "cattrs";
+  version = "1.1.2";
+
+  src = fetchFromGitHub {
+    owner = "Tinche";
+    repo = pname;
+    rev = "v${version}";
+    sha256 = "083d5mi6x7qcl26wlvwwn7gsp5chxlxkh4rp3a41w8cfwwr3h6l8";
+  };
+
+  propagatedBuildInputs = [ attrs ];
+
+  checkInputs = [
+    hypothesis
+    pytestCheckHook
+  ];
+
+  pythonImportsCheck = [ "cattr" ];
+
+  meta = with lib; {
+    description = "Python custom class converters for attrs";
+    homepage = "https://github.com/Tinche/cattrs";
+    license = with licenses; [ mit ];
+    maintainers = with maintainers; [ fab ];
+  };
+}