python3Packages.nmigen: unstable-2019-08-31 -> unstable-2019-09-28
This commit is contained in:
parent
97ca1528a0
commit
f68ec22dcc
|
@ -2,6 +2,8 @@
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
|
, setuptools
|
||||||
|
, setuptools_scm
|
||||||
, pyvcd
|
, pyvcd
|
||||||
, bitarray
|
, bitarray
|
||||||
, jinja2
|
, jinja2
|
||||||
|
@ -19,19 +21,22 @@
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "nmigen";
|
pname = "nmigen";
|
||||||
version = "unstable-2019-08-31";
|
version = "unstable-2019-09-28";
|
||||||
realVersion = lib.substring 0 7 src.rev;
|
# python setup.py --version
|
||||||
|
realVersion = "0.1.dev689+g${lib.substring 0 7 src.rev}";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "m-labs";
|
owner = "m-labs";
|
||||||
repo = "nmigen";
|
repo = "nmigen";
|
||||||
rev = "2e206220462c67aa6ae97f7515a2191440fd61b3";
|
rev = "a02e3750bfeba44bcaad4c5de8d9eb0ef055d9c6";
|
||||||
sha256 = "0y3w6vd493jqm9b8ppgwzs02v1al8w1n5gylljlsw70ci7fyk4qa";
|
sha256 = "0m399c2nm7y54q2f0fbkmi4h35csbc2llckm6k9kqdf5qc6355wd";
|
||||||
};
|
};
|
||||||
|
|
||||||
disabled = pythonOlder "3.6";
|
disabled = pythonOlder "3.6";
|
||||||
|
|
||||||
propagatedBuildInputs = [ pyvcd bitarray jinja2 ];
|
nativeBuildInputs = [ setuptools_scm ];
|
||||||
|
|
||||||
|
propagatedBuildInputs = [ setuptools pyvcd bitarray jinja2 ];
|
||||||
|
|
||||||
checkInputs = [ yosys yices ];
|
checkInputs = [ yosys yices ];
|
||||||
|
|
||||||
|
@ -48,14 +53,15 @@ buildPythonPackage rec {
|
||||||
tool icestorm "icepack" //
|
tool icestorm "icepack" //
|
||||||
tool trellis "ecppack";
|
tool trellis "ecppack";
|
||||||
in ''
|
in ''
|
||||||
substituteInPlace setup.py \
|
|
||||||
--replace 'versioneer.get_version()' '"${realVersion}"'
|
|
||||||
|
|
||||||
substituteInPlace nmigen/_toolchain.py \
|
substituteInPlace nmigen/_toolchain.py \
|
||||||
--replace 'overrides = {}' \
|
--replace 'overrides = {}' \
|
||||||
'overrides = ${builtins.toJSON toolchainOverrides}'
|
'overrides = ${builtins.toJSON toolchainOverrides}'
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
preBuild = ''
|
||||||
|
export SETUPTOOLS_SCM_PRETEND_VERSION="${realVersion}"
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A refreshed Python toolbox for building complex digital hardware";
|
description = "A refreshed Python toolbox for building complex digital hardware";
|
||||||
homepage = https://github.com/m-labs/nmigen;
|
homepage = https://github.com/m-labs/nmigen;
|
||||||
|
|
Loading…
Reference in New Issue