Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.
64 lines
1.2 KiB
Nix
64 lines
1.2 KiB
Nix
{
|
|||
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 ];
|
|||
};
|
|||
}
|