python312Packages.apollo-fpga: init at 1.1.0

This commit is contained in:
Karolis Stasaitis 2024-11-13 09:13:55 +01:00
parent e0f9d1953a
commit de6f807a09
2 changed files with 65 additions and 0 deletions

View File

@ -0,0 +1,63 @@
{
lib,
fetchFromGitHub,
buildPythonPackage,
pythonOlder,
# build-system
setuptools,
# dependencies
deprecation,
prompt-toolkit,
pyusb,
pyvcd,
pyxdg,
}:
buildPythonPackage rec {
pname = "apollo-fpga";
version = "1.1.0";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "greatscottgadgets";
repo = "apollo";
rev = "refs/tags/v${version}";
hash = "sha256-9BoHGdqjnWkP83zXdjzyoAhYB6n7SJ/zlr8pvqb+9kg=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail '"setuptools-git-versioning<2"' "" \
--replace-fail 'dynamic = ["version"]' 'version = "${version}"'
'';
build-system = [
setuptools
];
dependencies = [
deprecation
prompt-toolkit
pyusb
pyvcd
pyxdg
];
# has no tests
doCheck = false;
pythonImportsCheck = [
"apollo_fpga"
];
meta = {
changelog = "https://github.com/greatscottgadgets/apollo/releases/tag/v${version}";
description = "microcontroller-based FPGA / JTAG programmer";
homepage = "https://github.com/greatscottgadgets/apollo";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ carlossless ];
};
}

View File

@ -698,6 +698,8 @@ self: super: with self; {
aplpy = callPackage ../development/python-modules/aplpy { };
apollo-fpga = callPackage ../development/python-modules/apollo-fpga { };
app-model = callPackage ../development/python-modules/app-model { };
appdirs = callPackage ../development/python-modules/appdirs { };