mirror of
https://github.com/icewind1991/cynthion-flake.git
synced 2026-06-04 06:44:06 +02:00
init flake
This commit is contained in:
commit
a6d41bbaa3
17 changed files with 623 additions and 0 deletions
59
pkgs/python/amaranth.nix
Normal file
59
pkgs/python/amaranth.nix
Normal file
|
|
@ -0,0 +1,59 @@
|
|||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
pythonOlder,
|
||||
fetchFromGitHub,
|
||||
pdm-backend,
|
||||
pyvcd,
|
||||
jinja2,
|
||||
importlib-resources,
|
||||
importlib-metadata,
|
||||
git,
|
||||
# for tests
|
||||
pytestCheckHook,
|
||||
symbiyosys,
|
||||
yices,
|
||||
yosys,
|
||||
}:
|
||||
buildPythonPackage rec {
|
||||
pname = "amaranth-041";
|
||||
format = "pyproject";
|
||||
version = "0.4.1";
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "amaranth-lang";
|
||||
repo = "amaranth";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-VMgycvxkphdpWIib7aZwh588En145RgYlG2Zfi6nnDo=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
git
|
||||
pdm-backend
|
||||
];
|
||||
|
||||
propagatedBuildInputs =
|
||||
[
|
||||
jinja2
|
||||
pyvcd
|
||||
]
|
||||
++ lib.optional (pythonOlder "3.9") importlib-resources
|
||||
++ lib.optional (pythonOlder "3.8") importlib-metadata;
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
symbiyosys
|
||||
yices
|
||||
yosys
|
||||
];
|
||||
|
||||
pythonImportsCheck = ["amaranth"];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A modern hardware definition language and toolchain based on Python";
|
||||
homepage = "https://amaranth-lang.org/docs/amaranth";
|
||||
license = licenses.bsd2;
|
||||
maintainers = with maintainers; [emily thoughtpolice pbsds];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue