hyprpaper: 0.7.3 -> 0.7.4 (#376464)
[NixPkgs.git] / pkgs / by-name / ci / circup / package.nix
blobc7464f2ee9538be8bf5e7b0146c1be23425d3d66
2   lib,
3   fetchFromGitHub,
4   python3,
5 }:
7 python3.pkgs.buildPythonApplication rec {
8   pname = "circup";
9   version = "2.1.1";
10   pyproject = true;
12   src = fetchFromGitHub {
13     owner = "adafruit";
14     repo = "circup";
15     tag = version;
16     hash = "sha256-G2c2Psd5cyjKkpqYQOLVWSeLIWdoxYm45KLT0q7cTzQ=";
17   };
19   pythonRelaxDeps = [ "semver" ];
21   build-system = with python3.pkgs; [ setuptools-scm ];
23   dependencies = with python3.pkgs; [
24     appdirs
25     click
26     findimports
27     requests
28     semver
29     setuptools
30     toml
31     update-checker
32   ];
34   nativeCheckInputs = with python3.pkgs; [ pytestCheckHook ];
36   postBuild = ''
37     export HOME=$(mktemp -d);
38   '';
40   pythonImportsCheck = [ "circup" ];
42   disabledTests = [
43     # Test requires network access
44     "test_libraries_from_imports_bad"
45   ];
47   meta = with lib; {
48     description = "CircuitPython library updater";
49     homepage = "https://github.com/adafruit/circup";
50     changelog = "https://github.com/adafruit/circup/releases/tag/${version}";
51     license = with licenses; [ mit ];
52     maintainers = with maintainers; [ fab ];
53     mainProgram = "circup";
54   };