2019-08-30 21:44:30 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, nmigen
|
2019-09-27 15:07:19 +01:00
|
|
|
, setuptools
|
|
|
|
, setuptools_scm
|
2019-08-30 21:44:30 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "nmigen-boards";
|
2021-02-10 04:48:09 +00:00
|
|
|
version = "unstable-2021-02-09";
|
2019-09-27 15:07:19 +01:00
|
|
|
# python setup.py --version
|
2021-02-10 04:48:09 +00:00
|
|
|
realVersion = "0.1.dev173+g${lib.substring 0 7 src.rev}";
|
2019-08-30 21:44:30 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2020-02-08 17:48:46 +00:00
|
|
|
owner = "nmigen";
|
2019-08-30 21:44:30 +01:00
|
|
|
repo = "nmigen-boards";
|
2021-02-10 04:48:09 +00:00
|
|
|
rev = "a35d870a994c2919116b2c06166dc127febb1512";
|
|
|
|
sha256 = "1flbcyb2xz174dgqv2964qra80xj2vbzbqwjb27shvxm6knj9ikf";
|
2019-08-30 21:44:30 +01:00
|
|
|
};
|
|
|
|
|
2019-09-27 15:07:19 +01:00
|
|
|
nativeBuildInputs = [ setuptools_scm ];
|
|
|
|
propagatedBuildInputs = [ setuptools nmigen ];
|
2019-08-30 21:44:30 +01:00
|
|
|
|
2019-09-27 15:07:19 +01:00
|
|
|
preBuild = ''
|
|
|
|
export SETUPTOOLS_SCM_PRETEND_VERSION="${realVersion}"
|
2019-08-30 21:44:30 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Board and connector definitions for nMigen";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/nmigen/nmigen-boards";
|
2020-02-08 17:48:46 +00:00
|
|
|
license = licenses.bsd2;
|
2019-08-30 21:44:30 +01:00
|
|
|
maintainers = with maintainers; [ emily ];
|
|
|
|
};
|
|
|
|
}
|