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";
|
2019-09-27 15:07:19 +01:00
|
|
|
version = "unstable-2019-09-23";
|
|
|
|
# python setup.py --version
|
|
|
|
realVersion = "0.1.dev55+g${lib.substring 0 7 src.rev}";
|
2019-08-30 21:44:30 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "m-labs";
|
|
|
|
repo = "nmigen-boards";
|
2019-09-27 15:07:19 +01:00
|
|
|
rev = "b8b2bbaff34c905f2b1094a74b6865961feb2290";
|
|
|
|
sha256 = "00gsdm7qf6gsxqmkgqz1ing1yc0352s14pvw863rdbjbd1bv5r0m";
|
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";
|
|
|
|
homepage = https://github.com/m-labs/nmigen-boards;
|
|
|
|
license = licenses.bsd0;
|
|
|
|
maintainers = with maintainers; [ emily ];
|
|
|
|
};
|
|
|
|
}
|