about summary refs log tree commit diff
path: root/packages/mov-cli/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'packages/mov-cli/default.nix')
-rw-r--r--packages/mov-cli/default.nix22
1 files changed, 22 insertions, 0 deletions
diff --git a/packages/mov-cli/default.nix b/packages/mov-cli/default.nix
new file mode 100644
index 0000000..11ee4dc
--- /dev/null
+++ b/packages/mov-cli/default.nix
@@ -0,0 +1,22 @@
+{ lib, python39, fetchgit, gobject-introspection, gtk3, gnome, wrapGAppsHook }:
+
+python39.pkgs.buildPythonApplication rec {
+  pname = "mov-cli";
+  version = "1.0";
+
+  propagatedBuildInputs = with python39.pkgs; [ setuptools httpx click beautifulsoup4 colorama ];
+
+  #bug with fetchFromGithub?
+  src = fetchgit {
+    url = "https://github.com/mov-cli/${pname}.git";
+    rev = "b89e807e8ffc830b0b18c8e98712441c03774b8e";
+    sha256 = "sha256-D+OeXcLdkbG4ASbPQYIWf7J1CRZ9jH3UXxfTL4WleY0=";
+  };
+
+  prePatch = ''
+    substituteInPlace setup.py \
+    --replace "bs4" "beautifulsoup4"
+  '';
+
+  doCheck = false;
+}