1
0
Fork 0

bdfr: use older praw version

This commit is contained in:
Daniel Kempkens 2025-01-11 22:22:33 +01:00
parent 0f5778999e
commit 71b76c73de
Signed by: daniel
SSH key fingerprint: SHA256:Ks/MyhQYcPRQiwMKLAKquWCdCPe3JXlb1WttgnAoSeM
4 changed files with 39 additions and 23 deletions

View file

@ -23,7 +23,7 @@ jobs:
nix-update --flake controld
nix-update --flake discord-downloader-go
nix-update --flake q
env NIX_PATH=nixpkgs=$(nix flake metadata github:nixos/nixpkgs/nixos-unstable-small --json | jq -r .path) nix-shell ./packages/tabnine/update.sh
env NIX_PATH=nixpkgs=$(nix flake metadata github:nixos/nixpkgs/nixpkgs-unstable --json | jq -r .path) nix-shell ./packages/tabnine/update.sh
nix-update --flake tg-archive
nix-update --flake vuetorrent
- uses: https://github.com/stefanzweifel/git-auto-commit-action@v5

8
flake.lock generated
View file

@ -59,16 +59,16 @@
},
"nixpkgs": {
"locked": {
"lastModified": 1736517266,
"narHash": "sha256-B40MM4Fu1lVXdspYGyLDSK924B5PI0/xZSyHmo1wqDc=",
"lastModified": 1736420959,
"narHash": "sha256-dMGNa5UwdtowEqQac+Dr0d2tFO/60ckVgdhZU9q2E2o=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "e6752bc1ad9fed21141cbb389c8478b268ff06ec",
"rev": "32af3611f6f05655ca166a0b1f47b57c762b5192",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixos-unstable-small",
"ref": "nixpkgs-unstable",
"repo": "nixpkgs",
"type": "github"
}

View file

@ -1,7 +1,7 @@
{
description = "Collection of (useful) tools";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable-small";
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
flake-parts.url = "github:hercules-ci/flake-parts";

View file

@ -1,15 +1,15 @@
{ pkgs, lib }:
pkgs.python3.pkgs.buildPythonApplication rec {
pkgs.python310.pkgs.buildPythonApplication rec {
pname = "bulk-downloader-for-reddit";
version = "development";
pyproject = true;
src = pkgs.fetchFromGitHub {
owner = "aliparlakci";
owner = "Serene-Arc";
repo = pname;
rev = "8e6103952c4be3ccadfe29d3a0cae7a4d0b2c426";
hash = "sha256-kxCDtOywDSMxI+h8Ad2eziAGcZLbZHJFpDD/87BIbZY=";
rev = "b5b47f93e8380c9ef576eb52cd4c80d2fadf905a";
hash = "sha256-Tt1uWoS4VUnoVGKCgkLxXB8Sf4N1Z4U/5wirajB3nPg=";
};
patches = [
@ -17,22 +17,38 @@ pkgs.python3.pkgs.buildPythonApplication rec {
../patches/bulk-downloader-for-reddit_imgur-headers.patch
];
nativeBuildInputs = with pkgs.python3.pkgs; [
nativeBuildInputs = with pkgs.python310.pkgs; [
setuptools
wheel
];
propagatedBuildInputs = with pkgs.python3.pkgs; [
appdirs
beautifulsoup4
cachetools
click
dict2xml
praw
pyyaml
requests
yt-dlp
propagatedBuildInputs =
let
praw = pkgs.python310.pkgs.praw.overrideAttrs (_: previousAttrs: {
version = "7.7.1";
pyproject = true;
pkgs.ffmpeg-headless
];
nativeBuildInputs = previousAttrs.nativeBuildInputs ++ [ pkgs.python310.pkgs.setuptools ];
src = pkgs.fetchFromGitHub {
owner = "praw-dev";
repo = previousAttrs.pname;
rev = "refs/tags/v${version}";
hash = "sha256-L7wTHD/ypXVc8GMfl9u16VNb9caLJoXpaMEIzaVVUgo=";
};
});
in
with pkgs.python310.pkgs; [
appdirs
beautifulsoup4
cachetools
click
dict2xml
praw
pyyaml
requests
yt-dlp
pkgs.ffmpeg-headless
];
}