2019-02-14 15:29:42 +08:00
|
|
|
{ pkgs, stdenv, fetchFromGitHub, python, python3Packages }:
|
|
|
|
|
2019-02-19 21:18:38 +08:00
|
|
|
rec {
|
|
|
|
# User dependencies
|
2019-02-14 15:29:42 +08:00
|
|
|
asyncserial = python3Packages.buildPythonPackage rec {
|
|
|
|
name = "asyncserial";
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "m-labs";
|
|
|
|
repo = "asyncserial";
|
|
|
|
rev = "d95bc1d6c791b0e9785935d2f62f628eb5cdf98d";
|
|
|
|
sha256 = "0yzkka9jk3612v8gx748x6ziwykq5lr7zmr9wzkcls0v2yilqx9k";
|
|
|
|
};
|
2019-02-19 21:18:38 +08:00
|
|
|
propagatedBuildInputs = with python3Packages; [ pyserial ];
|
|
|
|
doCheck = false;
|
|
|
|
};
|
2019-02-14 15:29:42 +08:00
|
|
|
|
2019-02-19 21:18:38 +08:00
|
|
|
levenshtein = python3Packages.buildPythonPackage rec {
|
|
|
|
name = "levenshtein";
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ztane";
|
|
|
|
repo = "python-Levenshtein";
|
|
|
|
rev = "854e61a05bb8b750e990add96df412cd5448b75e";
|
|
|
|
sha256 = "1yf21kg1g2ivm5a4dx1jra9k0c33np54d0hk5ymnfyc4f6pg386q";
|
|
|
|
};
|
|
|
|
doCheck = false;
|
|
|
|
};
|
2019-02-14 15:29:42 +08:00
|
|
|
|
2019-02-19 21:18:38 +08:00
|
|
|
pythonparser = python3Packages.buildPythonPackage rec {
|
|
|
|
name = "pythonparser";
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "m-labs";
|
|
|
|
repo = "pythonparser";
|
|
|
|
rev = "5b391fe86f43bb9f4f96c5bc0532e2a112db2936";
|
|
|
|
sha256 = "1gw1fk4y2l6bwq0fg2a9dfc1rvq8cv492dyil96amjdhsxvnx35b";
|
2019-02-14 15:29:42 +08:00
|
|
|
};
|
2019-02-19 21:18:38 +08:00
|
|
|
propagatedBuildInputs = with python3Packages; [ regex ];
|
2019-02-14 15:29:42 +08:00
|
|
|
};
|
2019-02-19 21:18:38 +08:00
|
|
|
|
|
|
|
quamash = python3Packages.buildPythonPackage rec {
|
|
|
|
name = "quamash";
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "harvimt";
|
|
|
|
repo = "quamash";
|
|
|
|
rev = "e513b30f137415c5e098602fa383e45debab85e7";
|
|
|
|
sha256 = "117rp9r4lz0kfz4dmmpa35hp6nhbh6b4xq0jmgvqm68g9hwdxmqa";
|
|
|
|
};
|
|
|
|
propagatedBuildInputs = with python3Packages; [ pyqt5 ];
|
|
|
|
doCheck = false;
|
|
|
|
};
|
|
|
|
|
|
|
|
pyqtgraph-qt5 = python3Packages.buildPythonPackage rec {
|
|
|
|
name = "pyqtgraph_qt5-${version}";
|
|
|
|
version = "0.10.0";
|
|
|
|
doCheck = false;
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pyqtgraph";
|
|
|
|
repo = "pyqtgraph";
|
|
|
|
rev = "1426e334e1d20542400d77c72c132b04c6d17ddb";
|
|
|
|
sha256 = "1079haxyr316jf0wpirxdj0ry6j8mr16cqr0dyyrd5cnxwl7zssh";
|
|
|
|
};
|
|
|
|
propagatedBuildInputs = with python3Packages; [ scipy numpy pyqt5 pyopengl ];
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
# Development/firmware dependencies
|
2019-02-14 15:29:42 +08:00
|
|
|
misoc = python3Packages.buildPythonPackage rec {
|
|
|
|
name = "misoc";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "m-labs";
|
|
|
|
repo = "misoc";
|
|
|
|
rev = "8e033c2cb77f78c95d2b2e08125324891d07fa34";
|
|
|
|
sha256 = "0pv1akhvr85iswqmhzcqh9gfnyha11k68qmhqizma8fdccvvzm4y";
|
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
# TODO: fix misoc bitrot and re-enable tests
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python3Packages; [ pyserial jinja2 numpy asyncserial migen ];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A high performance and small footprint system-on-chip based on Migen";
|
|
|
|
homepage = "https://m-labs.hk/migen";
|
|
|
|
license = licenses.bsd2;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
};
|
2019-02-19 21:18:38 +08:00
|
|
|
|
2019-02-14 15:29:42 +08:00
|
|
|
migen = python3Packages.buildPythonPackage rec {
|
|
|
|
name = "migen";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "m-labs";
|
|
|
|
repo = "migen";
|
|
|
|
rev = "afe4405becdbc76539f0195c319367187012b05e";
|
|
|
|
sha256 = "1f288a7ll1d1gjmml716wsjf1jyq9y903i2312bxb8pwrg7fwgvz";
|
|
|
|
};
|
|
|
|
|
|
|
|
# TODO: fix migen platform issues and re-enable tests
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python3Packages; [ colorama sphinx sphinx_rtd_theme ] ++ (with pkgs; [ verilator ]);
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A Python toolbox for building complex digital hardware";
|
|
|
|
homepage = "https://m-labs.hk/migen";
|
|
|
|
license = licenses.bsd2;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
};
|
2019-02-19 21:18:38 +08:00
|
|
|
|
2019-02-14 15:29:42 +08:00
|
|
|
microscope = python3Packages.buildPythonPackage rec {
|
|
|
|
name = "microscope";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "m-labs";
|
|
|
|
repo = "microscope";
|
|
|
|
rev = "02cffc360ec5a234c589de6cb9616b057ed22253";
|
|
|
|
sha256 = "09yvgk16xfv5r5cf55vcg0f14wam42w53r4snlalcyw5gkm0rlhq";
|
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python3Packages; [ pyserial prettytable msgpack-python migen ];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Finding the bacteria in rotting FPGA designs";
|
|
|
|
homepage = "https://m-labs.hk/migen";
|
|
|
|
license = licenses.bsd2;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
};
|
2019-02-19 21:18:38 +08:00
|
|
|
|
2019-02-14 15:29:42 +08:00
|
|
|
jesd204b = python3Packages.buildPythonPackage rec {
|
|
|
|
name = "jesd204b";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "m-labs";
|
|
|
|
repo = "jesd204b";
|
|
|
|
rev = "2fd6391c0a9197580d60f7d8a146191dc7337b03";
|
|
|
|
sha256 = "1lhw8f0dp42xx4g6d7hyhqhrnd6i5ll4a1wcg265rqz3600i4009";
|
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python3Packages; [ migen misoc ];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "JESD204B core for Migen/MiSoC";
|
|
|
|
homepage = "https://m-labs.hk/migen";
|
|
|
|
license = licenses.bsd2;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
};
|
2019-02-19 14:38:33 +08:00
|
|
|
|
2019-02-19 21:18:38 +08:00
|
|
|
|
|
|
|
# Documentation building dependencies
|
2019-02-19 14:38:33 +08:00
|
|
|
# sphinx-argparse will be included in nixpkgs 19.03
|
|
|
|
sphinx-argparse = python3Packages.buildPythonPackage rec {
|
|
|
|
pname = "sphinx-argparse";
|
|
|
|
version = "0.2.5";
|
|
|
|
|
|
|
|
src = python3Packages.fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "05wc8f5hb3jsg2vh2jf7jsyan8d4i09ifrz2c8fp6f7x1zw9iav0";
|
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [ python3Packages.pytest ];
|
|
|
|
checkPhase = "py.test";
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ python3Packages.sphinx ];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A sphinx extension that automatically documents argparse commands and options";
|
|
|
|
homepage = https://github.com/ribozz/sphinx-argparse;
|
|
|
|
license = licenses.mit;
|
2019-02-19 21:18:38 +08:00
|
|
|
#maintainers = with maintainers; [ clacke ];
|
2019-02-19 14:38:33 +08:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
wavedrom = python3Packages.buildPythonPackage rec {
|
|
|
|
pname = "wavedrom";
|
|
|
|
version = "0.1";
|
|
|
|
|
|
|
|
src = python3Packages.fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "006w683zlmmwcw5xz1n5dwg34ims5jg3gl2700ql4wr0myjz6710";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ python3Packages.setuptools_scm ];
|
|
|
|
propagatedBuildInputs = with python3Packages; [ svgwrite attrdict ];
|
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "WaveDrom compatible Python module and command line";
|
|
|
|
homepage = "https://pypi.org/project/wavedrom/";
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
sphinxcontrib-wavedrom = python3Packages.buildPythonPackage rec {
|
|
|
|
pname = "sphinxcontrib-wavedrom";
|
|
|
|
version = "1.3.1";
|
|
|
|
|
|
|
|
src = python3Packages.fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "1q2hk630nz734cln2wwngjidlb7xyk6ly8qqlpsj259n9n2iab6v";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ python3Packages.setuptools_scm ];
|
2019-02-19 21:18:38 +08:00
|
|
|
propagatedBuildInputs = [ wavedrom ] ++ (with python3Packages; [ sphinx cairosvg xcffib ]);
|
2019-02-19 14:38:33 +08:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A Sphinx extension that allows including WaveDrom diagrams";
|
|
|
|
homepage = "https://pypi.org/project/sphinxcontrib-wavedrom/";
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
};
|
2019-02-14 15:29:42 +08:00
|
|
|
}
|