2023-01-12 19:49:25 +00:00
|
|
|
{
|
|
|
|
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 {
|
2023-01-15 12:43:19 +00:00
|
|
|
nativeBuildInputs = [ py pkgs.poetry ];
|
2023-01-12 19:49:25 +00:00
|
|
|
};
|
|
|
|
});
|
|
|
|
}
|