60 lines
1.5 KiB
Nix
60 lines
1.5 KiB
Nix
{
|
|
description = "A comic strip downloader and archiver (unstable)";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "nixpkgs/nixos-24.05";
|
|
flake-utils.url = "github:numtide/flake-utils";
|
|
};
|
|
|
|
outputs = {
|
|
self,
|
|
nixpkgs,
|
|
flake-utils,
|
|
...
|
|
}: let
|
|
pythonVersion = "python39";
|
|
in
|
|
flake-utils.lib.eachDefaultSystem (system: let
|
|
pkgs = nixpkgs.legacyPackages.${system};
|
|
lib = pkgs.lib;
|
|
python3Packages = pkgs.python3Packages;
|
|
fetchPypi = pkgs.fetchPypi;
|
|
in rec {
|
|
defaultPackage = python3Packages.buildPythonApplication rec {
|
|
pname = "dosage";
|
|
version = "3.1.dev104+g9e05fae304";
|
|
format = "pyproject";
|
|
|
|
src = builtins.fetchGit {
|
|
url = "https://src.mfgames.com/dmoonfire/dosage.git";
|
|
ref = "main";
|
|
rev = "1afcf55f8528c6c58ea7ccd3502ba1fd63612b41";
|
|
};
|
|
|
|
nativeCheckInputs = with python3Packages; [
|
|
pytestCheckHook
|
|
pytest-xdist
|
|
responses
|
|
];
|
|
|
|
nativeBuildInputs = with python3Packages; [setuptools-scm];
|
|
|
|
propagatedBuildInputs = with python3Packages; [
|
|
colorama
|
|
imagesize
|
|
lxml
|
|
platformdirs
|
|
requests
|
|
];
|
|
|
|
meta = {
|
|
description = "A comic strip downloader and archiver";
|
|
homepage = "https://dosage.rocks/";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [dmoonfire];
|
|
};
|
|
};
|
|
|
|
formatter = pkgs.alejandra;
|
|
});
|
|
}
|