nixpkgs-overlay/bandcamp-downloader/default.nix

41 lines
1.4 KiB
Nix
Raw Normal View History

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: {
# HACK
version = (builtins.fromTOML (builtins.readFile ./pyproject.toml)).tool.poetry.dependencies.bandcamp-downloader.tag;
2023-04-23 17:18:44 +02:00
postInstall = ''
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
]);
});
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