nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 fetchFromGitHub,
4 python3,
5}:
6
7python3.pkgs.buildPythonApplication (finalAttrs: {
8 pname = "fetchtastic";
9 version = "0.10.2";
10 pyproject = true;
11
12 src = fetchFromGitHub {
13 owner = "jeremiah-k";
14 repo = "fetchtastic";
15 tag = finalAttrs.version;
16 hash = "sha256-E8f0je4w4sTmf/EX9I8dZ4Ge4bsEvr8E6S5i02n5k+E=";
17 };
18
19 pythonRelaxDeps = [ "platformdirs" ];
20
21 build-system = with python3.pkgs; [ setuptools ];
22
23 dependencies = with python3.pkgs; [
24 packaging
25 pick
26 platformdirs
27 pyyaml
28 requests
29 rich
30 urllib3
31 ];
32
33 nativeCheckInputs = with python3.pkgs; [
34 pytest-cov-stub
35 pytest-mock
36 pytestCheckHook
37 ];
38
39 pythonImportsCheck = [ "fetchtastic" ];
40
41 meta = {
42 description = "Utility for downloading and managing the latest Meshtastic firmware releases";
43 homepage = "https://github.com/jeremiah-k/fetchtastic";
44 changelog = "https://github.com/jeremiah-k/fetchtastic/releases/tag/${finalAttrs.src.tag}";
45 license = lib.licenses.mit;
46 maintainers = with lib.maintainers; [ fab ];
47 mainProgram = "fetchtastic";
48 };
49})