1{ lib
2, fetchFromGitHub
3, python3
4}:
5
6python3.pkgs.buildPythonApplication rec {
7 pname = "circup";
8 version = "1.4.0";
9 format = "setuptools";
10
11 src = fetchFromGitHub {
12 owner = "adafruit";
13 repo = pname;
14 rev = "refs/tags/${version}";
15 hash = "sha256-kax4gnvRkHSqj0Y6Rk8eyPpT7Wia2QngCQtxpqWSl9s=";
16 };
17
18 pythonRelaxDeps = [
19 "semver"
20 ];
21
22 nativeBuildInputs = with python3.pkgs; [
23 setuptools-scm
24 pythonRelaxDepsHook
25 ];
26
27 propagatedBuildInputs = with python3.pkgs; [
28 appdirs
29 click
30 findimports
31 requests
32 semver
33 setuptools
34 update-checker
35 ];
36
37 nativeCheckInputs = with python3.pkgs; [
38 pytestCheckHook
39 ];
40
41 postBuild = ''
42 export HOME=$(mktemp -d);
43 '';
44
45 pythonImportsCheck = [
46 "circup"
47 ];
48
49 meta = with lib; {
50 description = "CircuitPython library updater";
51 mainProgram = "circup";
52 homepage = "https://github.com/adafruit/circup";
53 changelog = "https://github.com/adafruit/circup/releases/tag/${version}";
54 license = with licenses; [ mit ];
55 maintainers = with maintainers; [ fab ];
56 };
57}