mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 07:13:23 +01:00
python3Packages.nmigen: unstable-2019-09-28 -> unstable-2019-10-17
This commit is contained in:
parent
fecfbe18bd
commit
bf8ebc03b9
1 changed files with 6 additions and 29 deletions
|
@ -8,28 +8,23 @@
|
||||||
, bitarray
|
, bitarray
|
||||||
, jinja2
|
, jinja2
|
||||||
|
|
||||||
# nmigen.{test,build} call out to these
|
# for tests
|
||||||
, yosys
|
, yosys
|
||||||
, symbiyosys
|
, symbiyosys
|
||||||
, nextpnr ? null
|
|
||||||
, icestorm ? null
|
|
||||||
, trellis ? null
|
|
||||||
|
|
||||||
# for tests
|
|
||||||
, yices
|
, yices
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "nmigen";
|
pname = "nmigen";
|
||||||
version = "unstable-2019-09-28";
|
version = "unstable-2019-10-17";
|
||||||
# python setup.py --version
|
# python setup.py --version
|
||||||
realVersion = "0.1.dev689+g${lib.substring 0 7 src.rev}";
|
realVersion = "0.1.rc2.dev5+g${lib.substring 0 7 src.rev}";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "m-labs";
|
owner = "m-labs";
|
||||||
repo = "nmigen";
|
repo = "nmigen";
|
||||||
rev = "a02e3750bfeba44bcaad4c5de8d9eb0ef055d9c6";
|
rev = "9fba5ccb513cfbd53f884b1efca699352d2471b9";
|
||||||
sha256 = "0m399c2nm7y54q2f0fbkmi4h35csbc2llckm6k9kqdf5qc6355wd";
|
sha256 = "02bjry4sqjsrhl0s42zl1zl06gk5na9i6br6vmz7fvxic29vl83v";
|
||||||
};
|
};
|
||||||
|
|
||||||
disabled = pythonOlder "3.6";
|
disabled = pythonOlder "3.6";
|
||||||
|
@ -38,25 +33,7 @@ buildPythonPackage rec {
|
||||||
|
|
||||||
propagatedBuildInputs = [ setuptools pyvcd bitarray jinja2 ];
|
propagatedBuildInputs = [ setuptools pyvcd bitarray jinja2 ];
|
||||||
|
|
||||||
checkInputs = [ yosys yices ];
|
checkInputs = [ yosys symbiyosys yices ];
|
||||||
|
|
||||||
postPatch = let
|
|
||||||
tool = pkg: name:
|
|
||||||
if pkg == null then {} else { ${name} = "${pkg}/bin/${name}"; };
|
|
||||||
|
|
||||||
# Only FOSS toolchain supported out of the box, sorry!
|
|
||||||
toolchainOverrides =
|
|
||||||
tool yosys "yosys" //
|
|
||||||
tool symbiyosys "sby" //
|
|
||||||
tool nextpnr "nextpnr-ice40" //
|
|
||||||
tool nextpnr "nextpnr-ecp5" //
|
|
||||||
tool icestorm "icepack" //
|
|
||||||
tool trellis "ecppack";
|
|
||||||
in ''
|
|
||||||
substituteInPlace nmigen/_toolchain.py \
|
|
||||||
--replace 'overrides = {}' \
|
|
||||||
'overrides = ${builtins.toJSON toolchainOverrides}'
|
|
||||||
'';
|
|
||||||
|
|
||||||
preBuild = ''
|
preBuild = ''
|
||||||
export SETUPTOOLS_SCM_PRETEND_VERSION="${realVersion}"
|
export SETUPTOOLS_SCM_PRETEND_VERSION="${realVersion}"
|
||||||
|
|
Loading…
Reference in a new issue