python3Packages.cocotb: Mark broken on darwin, remove stale substituteInPlace

master
Sandro Jäckel 2021-02-13 02:34:26 +01:00
parent 2a342932d3
commit 206e998c06
No known key found for this signature in database
GPG Key ID: 3AF5A43A3EECC2E5
1 changed files with 3 additions and 6 deletions

View File

@ -1,4 +1,4 @@
{ lib, buildPythonPackage, fetchFromGitHub, setuptools, swig, verilog }:
{ lib, stdenv, buildPythonPackage, fetchFromGitHub, setuptools, swig, verilog }:
buildPythonPackage rec {
pname = "cocotb";
@ -25,9 +25,6 @@ buildPythonPackage rec {
do
substituteInPlace $f --replace 'shell which' 'shell command -v'
done
# This can perhaps be removed in the next update after 1.3.2?
substituteInPlace cocotb/share/makefiles/Makefile.inc --replace "-Werror" ""
'';
checkInputs = [ swig verilog ];
@ -36,8 +33,7 @@ buildPythonPackage rec {
# test expected failures actually pass because of a fix in our icarus version
# https://github.com/cocotb/cocotb/issues/1952
substituteInPlace tests/test_cases/test_discovery/test_discovery.py \
--replace 'def access_single_bit' $'def foo(x): pass\ndef foo' \
--replace 'def access_single_bit_assignment' $'def foo(x): pass\ndef foo'
--replace 'def access_single_bit' $'def foo(x): pass\ndef foo'
export PATH=$out/bin:$PATH
make test
@ -48,5 +44,6 @@ buildPythonPackage rec {
homepage = "https://github.com/cocotb/cocotb";
license = licenses.bsd3;
maintainers = with maintainers; [ matthuszagh ];
broken = stdenv.isDarwin;
};
}