Skip to content

Commit

Permalink
python312Packages.luna-soc: init at 0.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
carlossless committed Nov 13, 2024
1 parent 5b195f7 commit 4468377
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 0 deletions.
53 changes: 53 additions & 0 deletions pkgs/development/python-modules/luna-soc/default.nix
Original file line number Diff line number Diff line change
@@ -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 libary for building USB-capable SoC designs.";
homepage = "https://github.com/greatscottgadgets/luna-soc";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ carlossless ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7610,6 +7610,8 @@ self: super: with self; {

lunarcalendar = callPackage ../development/python-modules/lunarcalendar { };

luna-soc = callPackage ../development/python-modules/luna-soc { };

luna-usb = callPackage ../development/python-modules/luna-usb { };

luqum = callPackage ../development/python-modules/luqum { };
Expand Down

0 comments on commit 4468377

Please sign in to comment.