28 lines
635 B
Nix
28 lines
635 B
Nix
{
|
|
description = "Display stats about your spotify playlists";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
|
flake-utils.url = "github:numtide/flake-utils";
|
|
};
|
|
|
|
outputs = { self, nixpkgs, flake-utils }:
|
|
flake-utils.lib.eachDefaultSystem (system:
|
|
let
|
|
pkgs = import nixpkgs {
|
|
inherit system;
|
|
};
|
|
|
|
py = pkgs.python310.withPackages(p: with p; [
|
|
spotipy
|
|
matplotlib
|
|
flask
|
|
python-dotenv
|
|
]);
|
|
in
|
|
{
|
|
devShell = pkgs.mkShell {
|
|
nativeBuildInputs = [ py pkgs.poetry ];
|
|
};
|
|
});
|
|
}
|