2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, nmigen
|
|
|
|
, setuptools
|
|
|
|
, setuptools_scm
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "nmigen-boards";
|
2021-02-13 14:23:35 +00:00
|
|
|
version = "unstable-2021-02-09";
|
2020-04-24 23:36:52 +00:00
|
|
|
# python setup.py --version
|
2021-02-13 14:23:35 +00:00
|
|
|
realVersion = "0.1.dev173+g${lib.substring 0 7 src.rev}";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nmigen";
|
|
|
|
repo = "nmigen-boards";
|
2021-02-13 14:23:35 +00:00
|
|
|
rev = "a35d870a994c2919116b2c06166dc127febb1512";
|
|
|
|
sha256 = "1flbcyb2xz174dgqv2964qra80xj2vbzbqwjb27shvxm6knj9ikf";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ setuptools_scm ];
|
|
|
|
propagatedBuildInputs = [ setuptools nmigen ];
|
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
export SETUPTOOLS_SCM_PRETEND_VERSION="${realVersion}"
|
|
|
|
'';
|
|
|
|
|
2021-02-13 14:23:35 +00:00
|
|
|
# no tests
|
|
|
|
doCheck = false;
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Board and connector definitions for nMigen";
|
|
|
|
homepage = "https://github.com/nmigen/nmigen-boards";
|
|
|
|
license = licenses.bsd2;
|
|
|
|
maintainers = with maintainers; [ emily ];
|
|
|
|
};
|
|
|
|
}
|