dosage-dmoonfire-flake/flake.nix

61 lines
1.5 KiB
Nix
Raw Normal View History

2023-11-05 17:17:15 +00:00
{
description = "A comic strip downloader and archiver (unstable)";
inputs = {
2024-07-03 00:00:40 +00:00
nixpkgs.url = "nixpkgs/nixos-24.05";
flake-utils.url = "github:numtide/flake-utils";
2023-11-05 17:17:15 +00:00
};
2023-11-05 17:24:01 +00:00
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";
2023-11-05 19:10:27 +00:00
src = builtins.fetchGit {
url = "https://src.mfgames.com/dmoonfire/dosage.git";
ref = "main";
2024-01-16 04:08:46 +00:00
rev = "6c00cdc111bc1cc59110c5c363c258721036c87a";
2023-11-05 19:10:27 +00:00
};
2023-11-05 17:24:01 +00:00
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];
2023-11-05 17:17:15 +00:00
};
2023-11-05 17:24:01 +00:00
};
2023-11-05 17:17:15 +00:00
2023-11-05 17:24:01 +00:00
formatter = pkgs.alejandra;
});
2023-11-05 17:17:15 +00:00
}