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