mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 00:12:56 +00:00
python312Packages.apollo-fpga: init at 1.1.0
This commit is contained in:
parent
e0f9d1953a
commit
de6f807a09
63
pkgs/development/python-modules/apollo-fpga/default.nix
Normal file
63
pkgs/development/python-modules/apollo-fpga/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
@ -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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user