Add shell.nix

This commit is contained in:
Jeffrey Serio 2024-08-18 06:01:00 -05:00
parent 56e9c3b6cc
commit d02a594799

25
shell.nix Normal file
View File

@ -0,0 +1,25 @@
with import <nixpkgs> {};
( let
python-qbittorrent = pkgs.python312Packages.buildPythonPackage rec {
name = "python-qbittorrent-${version}";
version = "0.4.3";
src = pkgs.fetchurl{
url = "https://files.pythonhosted.org/packages/86/25/a5ad35ad229c8016a8c98327495e649cb795be2fda63f8cace6c9a739af7/python-qbittorrent-${version}.tar.gz";
sha256 = "4e22cf89890628b054a60aa4bd1161a68c2b0fad48ef0886fa4d325e69d3828a";
};
meta = {
homepage = "https://github.com/v1k45/python-qBittorrent";
description = "Python wrapper for qBittorrent Web API (for versions above v3.1.x)";
license = lib.licenses.mit;
maintainers = with maintainers; [ v1k45 ];
};
};
in pkgs.python312.buildEnv.override rec {
extraLibs = [ pkgs.python312Packages.beautifulsoup4 pkgs.python312Packages.docopt pkgs.python312Packages.requests pkgs.python312Packages.rich python-qbittorrent ];
}
).env