mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-29 06:45:54 +03:00
fe381b3cf4
Fixes nmigen build due to pyvcd being bumped to v0.2.
48 lines
1013 B
Nix
48 lines
1013 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, pythonOlder
|
|
, fetchFromGitHub
|
|
, setuptools
|
|
, setuptools_scm
|
|
, pyvcd
|
|
, jinja2
|
|
|
|
# for tests
|
|
, yosys
|
|
, symbiyosys
|
|
, yices
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "nmigen";
|
|
version = "unstable-2020-04-02";
|
|
# python setup.py --version
|
|
realVersion = "0.2.dev49+g${lib.substring 0 7 src.rev}";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "nmigen";
|
|
repo = "nmigen";
|
|
rev = "c79caead33fff14e2dec42b7e21d571a02526876";
|
|
sha256 = "sha256-3+mxHyg0a92/BfyePtKT5Hsk+ra+fQzTjCJ2Ech44/s=";
|
|
};
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
nativeBuildInputs = [ setuptools_scm ];
|
|
|
|
propagatedBuildInputs = [ setuptools pyvcd jinja2 ];
|
|
|
|
checkInputs = [ yosys symbiyosys yices ];
|
|
|
|
preBuild = ''
|
|
export SETUPTOOLS_SCM_PRETEND_VERSION="${realVersion}"
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "A refreshed Python toolbox for building complex digital hardware";
|
|
homepage = "https://nmigen.info/nmigen";
|
|
license = licenses.bsd2;
|
|
maintainers = with maintainers; [ emily ];
|
|
};
|
|
}
|