Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sublime-music: init at 0.11.0 #93817

Merged
merged 3 commits into from
Jul 25, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 60 additions & 0 deletions pkgs/applications/audio/sublime-music/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
{ lib, python3Packages, gobject-introspection, gtk3, pango, wrapGAppsHook

, chromecastSupport ? false
, serverSupport ? false
, keyringSupport ? true
, notifySupport ? true, libnotify
, networkSupport ? true, networkmanager
}:

python3Packages.buildPythonApplication rec {
pname = "sublime-music";
version = "0.11.0";

src = python3Packages.fetchPypi {
inherit pname version;
sha256 = "1rnjc8pjfaq67mq10gy939g77azc80lxf77s9nsaxds4q5j1yrl2";
};

nativeBuildInputs = [
gobject-introspection
python3Packages.setuptools
wrapGAppsHook
];

buildInputs = [
gtk3
pango
]
++ lib.optional notifySupport libnotify
++ lib.optional networkSupport networkmanager
;

propagatedBuildInputs = with python3Packages; [
dataclasses-json
deepdiff
fuzzywuzzy
mpv
peewee
pygobject3
python-Levenshtein
python-dateutil
requests
semver
]
++ lib.optional chromecastSupport PyChromecast
++ lib.optional keyringSupport keyring
++ lib.optional serverSupport bottle
;

# hook for gobject-introspection doesn't like strictDeps
# https://github.com/NixOS/nixpkgs/issues/56943
strictDeps = false;
jtojnar marked this conversation as resolved.
Show resolved Hide resolved

meta = with lib; {
description = "GTK3 Subsonic/Airsonic client";
homepage = "https://sublimemusic.app/";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ albakham ];
};
}
30 changes: 30 additions & 0 deletions pkgs/development/python-modules/dataclasses-json/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{ lib
, buildPythonPackage
, fetchPypi
, stringcase
, typing-inspect
, marshmallow-enum
}:

buildPythonPackage rec {
pname = "dataclasses-json";
version = "0.5.1";

src = fetchPypi {
inherit pname version;
sha256 = "0nkgp4pd7j7ydrciiix4x0w56l5w6qvj2vgxpwj42h4f2wdv2f3f";
};

propagatedBuildInputs = [
stringcase
typing-inspect
marshmallow-enum
];

meta = with lib; {
description = "Simple API for encoding and decoding dataclasses to and from JSON";
homepage = "https://github.com/lidatong/dataclasses-json";
license = licenses.mit;
maintainers = with maintainers; [ albakham ];
};
}
29 changes: 29 additions & 0 deletions pkgs/development/python-modules/typing-inspect/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{ lib
, buildPythonPackage
, fetchPypi
, typing-extensions
, mypy-extensions
}:

buildPythonPackage rec {
pname = "typing-inspect";
version = "0.6.0";

src = fetchPypi {
inherit version;
pname = "typing_inspect";
sha256 = "1dzs9a1pr23dhbvmnvms2jv7l7jk26023g5ysf0zvnq8b791s6wg";
};

propagatedBuildInputs = [
typing-extensions
mypy-extensions
];

meta = with lib; {
description = "Runtime inspection utilities for Python typing module";
homepage = "https://github.com/ilevkivskyi/typing_inspect";
license = licenses.mit;
maintainers = with maintainers; [ albakham ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22486,6 +22486,8 @@ in
pythonBindings = true;
});

sublime-music = callPackage ../applications/audio/sublime-music { };

subunit = callPackage ../development/libraries/subunit { };

surf = callPackage ../applications/networking/browsers/surf { gtk = gtk2; };
Expand Down
4 changes: 4 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2132,6 +2132,8 @@ in {

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

dataclasses-json = callPackage ../development/python-modules/dataclasses-json { };

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

defusedxml = callPackage ../development/python-modules/defusedxml {};
Expand Down Expand Up @@ -5866,6 +5868,8 @@ in {

typing-extensions = callPackage ../development/python-modules/typing-extensions { };

typing-inspect = callPackage ../development/python-modules/typing-inspect { };

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

typesentry = callPackage ../development/python-modules/typesentry { };
Expand Down