2022-02-14 22:27:10 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, python3
|
|
|
|
}:
|
|
|
|
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
|
|
pname = "circup";
|
2023-07-13 18:07:03 +00:00
|
|
|
version = "1.2.3";
|
2022-02-14 22:27:10 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "adafruit";
|
|
|
|
repo = pname;
|
2022-06-09 00:18:22 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2023-07-13 18:07:03 +00:00
|
|
|
hash = "sha256-6RjZHMZBL8p72+JeZOzyD/x1qiZay2ApJEmp9IXXpDA=";
|
2022-02-14 22:27:10 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
|
|
|
|
2023-05-04 06:33:37 +00:00
|
|
|
pythonRelaxDeps = [
|
|
|
|
"semver"
|
|
|
|
];
|
|
|
|
|
2022-02-14 22:27:10 +00:00
|
|
|
nativeBuildInputs = with python3.pkgs; [
|
|
|
|
setuptools-scm
|
2023-05-04 06:33:37 +00:00
|
|
|
pythonRelaxDepsHook
|
2022-02-14 22:27:10 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
|
|
appdirs
|
|
|
|
click
|
|
|
|
findimports
|
|
|
|
requests
|
|
|
|
semver
|
|
|
|
setuptools
|
|
|
|
update_checker
|
|
|
|
];
|
|
|
|
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = with python3.pkgs; [
|
2022-02-14 22:27:10 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
postBuild = ''
|
|
|
|
export HOME=$(mktemp -d);
|
|
|
|
'';
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
2022-03-19 20:02:04 +00:00
|
|
|
"circup"
|
2022-02-14 22:27:10 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "CircuitPython library updater";
|
|
|
|
homepage = "https://github.com/adafruit/circup";
|
2022-12-17 09:22:47 +00:00
|
|
|
changelog = "https://github.com/adafruit/circup/releases/tag/${version}";
|
2022-02-14 22:27:10 +00:00
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|