2023-04-23 17:18:44 +02:00
|
|
|
{ poetry2nix, pkgs, lib }:
|
|
|
|
let
|
|
|
|
pythonPackages = (poetry2nix.mkPoetryPackages {
|
|
|
|
projectDir = ./.;
|
|
|
|
overrides = [
|
|
|
|
poetry2nix.defaultPoetryOverrides
|
|
|
|
(import ./poetry-git-overlay.nix { inherit pkgs; })
|
|
|
|
(final: prev: {
|
|
|
|
bandcamp-downloader = prev.bandcamp-downloader.overridePythonAttrs (old: {
|
2024-07-02 22:03:22 +02:00
|
|
|
# HACK
|
|
|
|
version = (builtins.fromTOML (builtins.readFile ./pyproject.toml)).tool.poetry.dependencies.bandcamp-downloader.tag;
|
|
|
|
|
2023-04-23 17:18:44 +02:00
|
|
|
postInstall = ''
|
2024-07-02 22:03:22 +02:00
|
|
|
mv $out/bin/${old.pname}{.py,}
|
2023-04-23 17:18:44 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = old.meta // (with lib; {
|
|
|
|
description = "Download your bandcamp collection using this python script";
|
|
|
|
license = licenses.mit;
|
|
|
|
homepage = "https://github.com/easlice/bandcamp-downloader";
|
|
|
|
maintainers = with maintainers; [ sbruder ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
beautifulsoup4 = prev.beautifulsoup4.overridePythonAttrs (old: {
|
|
|
|
propagatedBuildInputs = old.propagatedBuildInputs ++ (with prev; [
|
|
|
|
setuptools
|
|
|
|
hatchling
|
|
|
|
]);
|
|
|
|
});
|
2024-07-02 22:03:22 +02:00
|
|
|
backports-tarfile = prev.backports-tarfile.overridePythonAttrs (old: {
|
|
|
|
propagatedBuildInputs = old.propagatedBuildInputs ++ (with prev; [
|
|
|
|
setuptools
|
|
|
|
]);
|
|
|
|
});
|
2023-04-23 17:18:44 +02:00
|
|
|
})
|
|
|
|
];
|
|
|
|
}).python.pkgs;
|
|
|
|
in
|
|
|
|
pythonPackages.bandcamp-downloader
|