mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-30 17:43:42 +00:00
33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
74 lines
1.6 KiB
Nix
74 lines
1.6 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, coreutils
|
|
, jinja2
|
|
, pandas
|
|
, pytestCheckHook
|
|
, which
|
|
, yosys
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "edalize";
|
|
version = "0.4.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "olofk";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
sha256 = "sha256-h6b0mdAUR4NsN2SpnLu5OgS9Fy9ZRitG+5Sbon1jlUM=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace tests/test_edam.py \
|
|
--replace /usr/bin/touch ${coreutils}/bin/touch
|
|
patchShebangs tests/mock_commands/vsim
|
|
'';
|
|
|
|
propagatedBuildInputs = [ jinja2 ];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
pandas
|
|
which
|
|
yosys
|
|
];
|
|
|
|
pythonImportsCheck = [ "edalize" ];
|
|
|
|
disabledTestPaths = [
|
|
"tests/test_questa_formal.py"
|
|
"tests/test_slang.py"
|
|
"tests/test_apicula.py"
|
|
"tests/test_ascentlint.py"
|
|
"tests/test_diamond.py"
|
|
"tests/test_gatemate.py"
|
|
"tests/test_ghdl.py"
|
|
"tests/test_icarus.py"
|
|
"tests/test_icestorm.py"
|
|
"tests/test_ise.py"
|
|
"tests/test_mistral.py"
|
|
"tests/test_openlane.py"
|
|
"tests/test_oxide.py"
|
|
"tests/test_quartus.py"
|
|
"tests/test_radiant.py"
|
|
"tests/test_spyglass.py"
|
|
"tests/test_symbiyosys.py"
|
|
"tests/test_trellis.py"
|
|
"tests/test_vcs.py"
|
|
"tests/test_veribleformat.py"
|
|
"tests/test_veriblelint.py"
|
|
"tests/test_vivado.py"
|
|
"tests/test_xcelium.py"
|
|
"tests/test_xsim.py"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Abstraction library for interfacing EDA tools";
|
|
homepage = "https://github.com/olofk/edalize";
|
|
license = licenses.bsd2;
|
|
maintainers = [ maintainers.astro ];
|
|
};
|
|
}
|