Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at fix-function-merge 56 lines 1.1 kB view raw
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 ]; 25 26 propagatedBuildInputs = with python3.pkgs; [ 27 appdirs 28 click 29 findimports 30 requests 31 semver 32 setuptools 33 update-checker 34 ]; 35 36 nativeCheckInputs = with python3.pkgs; [ 37 pytestCheckHook 38 ]; 39 40 postBuild = '' 41 export HOME=$(mktemp -d); 42 ''; 43 44 pythonImportsCheck = [ 45 "circup" 46 ]; 47 48 meta = with lib; { 49 description = "CircuitPython library updater"; 50 mainProgram = "circup"; 51 homepage = "https://github.com/adafruit/circup"; 52 changelog = "https://github.com/adafruit/circup/releases/tag/${version}"; 53 license = with licenses; [ mit ]; 54 maintainers = with maintainers; [ fab ]; 55 }; 56}