python312Packages.luna-soc: init at 0.2.0

This commit is contained in:
Karolis Stasaitis 2024-11-13 09:16:20 +01:00
parent 393495aa44
commit ded0edc6d9
2 changed files with 55 additions and 0 deletions

View File

@ -0,0 +1,53 @@
{
lib,
fetchFromGitHub,
buildPythonPackage,
pythonOlder,
# build-system
setuptools,
# dependencies
luna-usb,
}:
buildPythonPackage rec {
pname = "luna-soc";
version = "0.2.0";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "greatscottgadgets";
repo = "luna-soc";
rev = "refs/tags/${version}";
hash = "sha256-P8P32hM1cVXENcDpCrmPe8BvkMCWdeEgHwbIU94uLe8=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail '"setuptools-git-versioning<2"' "" \
--replace-fail 'dynamic = ["version"]' 'version = "${version}"'
'';
build-system = [
setuptools
];
dependencies = [ luna-usb ];
# has no tests
doCheck = false;
pythonImportsCheck = [
"luna_soc"
];
meta = {
changelog = "https://github.com/greatscottgadgets/luna-soc/releases/tag/${version}";
description = "Amaranth HDL library for building USB-capable SoC designs";
homepage = "https://github.com/greatscottgadgets/luna-soc";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ carlossless ];
};
}

View File

@ -7610,6 +7610,8 @@ self: super: with self; {
lunarcalendar = callPackage ../development/python-modules/lunarcalendar { }; lunarcalendar = callPackage ../development/python-modules/lunarcalendar { };
luna-soc = callPackage ../development/python-modules/luna-soc { };
luna-usb = callPackage ../development/python-modules/luna-usb { }; luna-usb = callPackage ../development/python-modules/luna-usb { };
luqum = callPackage ../development/python-modules/luqum { }; luqum = callPackage ../development/python-modules/luqum { };