summary refs log tree commit diff
path: root/pkgs/development/python-modules/eebrightbox
diff options
context:
space:
mode:
authorRobert Schütz <dev@schuetz-co.de>2021-06-18 01:19:28 +0200
committerRobert Schütz <dev@schuetz-co.de>2021-06-18 02:34:09 +0200
commit3945bf16f14e3a2c402225b3811c3709373b4207 (patch)
tree36fc9a4834ed5f731f5516b2ae8624d7a6939b9e /pkgs/development/python-modules/eebrightbox
parent6f54f198d2d0a6f0da632e85f7fff54bf2274365 (diff)
downloadnixpkgs-3945bf16f14e3a2c402225b3811c3709373b4207.tar
nixpkgs-3945bf16f14e3a2c402225b3811c3709373b4207.tar.gz
nixpkgs-3945bf16f14e3a2c402225b3811c3709373b4207.tar.bz2
nixpkgs-3945bf16f14e3a2c402225b3811c3709373b4207.tar.lz
nixpkgs-3945bf16f14e3a2c402225b3811c3709373b4207.tar.xz
nixpkgs-3945bf16f14e3a2c402225b3811c3709373b4207.tar.zst
nixpkgs-3945bf16f14e3a2c402225b3811c3709373b4207.zip
python3Packages.eebrightbox: init at 0.0.6
Diffstat (limited to 'pkgs/development/python-modules/eebrightbox')
-rw-r--r--pkgs/development/python-modules/eebrightbox/default.nix58
1 files changed, 58 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/eebrightbox/default.nix b/pkgs/development/python-modules/eebrightbox/default.nix
new file mode 100644
index 00000000000..d8050b9bf5e
--- /dev/null
+++ b/pkgs/development/python-modules/eebrightbox/default.nix
@@ -0,0 +1,58 @@
+{ lib
+, buildPythonPackage
+, fetchFromGitHub
+, pbr
+, calmjs-parse
+, certifi
+, chardet
+, idna
+, ply
+, requests
+, urllib3
+, httpretty
+, pytestCheckHook
+}:
+
+buildPythonPackage rec {
+  pname = "eebrightbox";
+  version = "0.0.6";
+
+  src = fetchFromGitHub {
+    owner = "krygal";
+    repo = "eebrightbox";
+    rev = version;
+    sha256 = "1kms240g01871qbvyc5rzf86yxsrlnfvp323jh4k35fpf45z44rr";
+  };
+
+  postPatch = ''
+    substituteInPlace requirements.txt --replace "==" ">="
+  '';
+
+  nativeBuildInputs = [
+    pbr
+  ];
+
+  PBR_VERSION = version;
+
+  propagatedBuildInputs = [
+    calmjs-parse
+    certifi
+    chardet
+    idna
+    ply
+    requests
+    urllib3
+  ];
+
+  checkInputs = [
+    httpretty
+    pytestCheckHook
+  ];
+
+  meta = with lib; {
+    description = "Connector for EE BrightBox routers";
+    homepage = "https://github.com/krygal/eebrightbox";
+    license = licenses.mit;
+    maintainers = with maintainers; [ dotlambda ];
+  };
+}