Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

52 lines
1.2 KiB
Nix

{
lib,
fetchFromGitHub,
buildPythonPackage,
iverilog,
ghdl,
pytest,
pytest-xdist,
}:
buildPythonPackage {
pname = "myhdl";
# The stable version is from 2019 and it doesn't pass tests
version = "unstable-2022-04-26";
format = "setuptools";
# The pypi src doesn't contain the ci script used in checkPhase
src = fetchFromGitHub {
owner = "myhdl";
repo = "myhdl";
rev = "1a4f5cd4e9de2e7bbf1053c3c2bc9526b5cc524a";
hash = "sha256-Tgoem88Y6AhlCKVhMm0Khg6GPcrEktYOqV8xcMaNkl4=";
};
nativeCheckInputs = [
pytest
pytest-xdist
iverilog
ghdl
];
passthru = {
# If using myhdl as a dependency, use these if needed and not ghdl and
# verlog from all-packages.nix
inherit ghdl iverilog;
};
checkPhase = ''
runHook preCheck
for target in {core,iverilog,ghdl}; do
env CI_TARGET="$target" bash ./scripts/ci.sh
done;
runHook postCheck
'';
meta = with lib; {
description = "Free, open-source package for using Python as a hardware description and verification language";
homepage = "https://www.myhdl.org/";
license = licenses.lgpl21;
maintainers = with maintainers; [ doronbehar ];
};
}