~andir/nixpkgs-dev

pythonPackages.gusmobile: init at unstable-2020-03-17 v2 PROPOSED

William Casarin: 1
 pythonPackages.gusmobile: init at unstable-2020-03-17

 2 files changed, 22 insertions(+), 0 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~andir/nixpkgs-dev/patches/20061/mbox | git am -3
Learn more about email & git
View this thread in the archives

[PATCH v2] pythonPackages.gusmobile: init at unstable-2020-03-17 Export this patch

A gemini protocol python library. This is needed for the CAPCOM gemini
feed aggregator.

Signed-off-by: William Casarin <jb55@jb55.com>
---

v1 -> v2

- fetchgit src http to https

 .../python-modules/gusmobile/default.nix      | 20 +++++++++++++++++++
 pkgs/top-level/python-packages.nix            |  2 ++
 2 files changed, 22 insertions(+)
 create mode 100644 pkgs/development/python-modules/gusmobile/default.nix

diff --git a/pkgs/development/python-modules/gusmobile/default.nix b/pkgs/development/python-modules/gusmobile/default.nix
new file mode 100644
index 00000000000..a38843513c0
--- /dev/null
+++ b/pkgs/development/python-modules/gusmobile/default.nix
@@ -0,0 +1,20 @@
{ lib, buildPythonPackage, fetchgit }:

buildPythonPackage {
  pname = "gusmobile";
  version = "unstable-2020-03-17";

  src = fetchgit {
      url = "https://git.carcosa.net/jmcbray/gusmobile.git";
      rev = "0a09aaaf00578d1389a4aa6b15f5c64867e0f8ca";
      sha256 = "0wpvfk5kj23r83xfha6kidsh5c7y143y9ximlx3h92hih7rpskmn";
  };

  meta = with lib; {
    homepage = "https://git.carcosa.net/jmcbray/gusmobile";
    description = "A simple library for making Gemini protocol requests";
    license = licenses.agpl3;
    maintainers = [ jb55 ];
  };

}
diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix
index 3d66eaaa5b0..d2694d873d3 100644
--- a/pkgs/top-level/python-packages.nix
+++ b/pkgs/top-level/python-packages.nix
@@ -2841,6 +2841,8 @@ in {

  gumath = callPackage ../development/python-modules/gumath { };

  gusmobile = callPackage ../development/python-modules/gusmobile { };

  gunicorn = if isPy27 then
    callPackage ../development/python-modules/gunicorn/19.nix { }
  else
-- 
2.28.0
Reviewed-by: Matthias Beyer <mail@beyermatthias.de>
Untested, but it builds just fine.

Reviewed-by: Xinglu Chen <public@yoctocell.xyz>
PR'd at https://github.com/NixOS/nixpkgs/pull/112245

Thanks for the reviews!