blob: 7f4654eab79c333a785dd8ba261185252a56f99e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
{ lib
, buildPythonPackage
, fetchFromGitHub
, nmigen
, setuptools
, setuptools_scm
}:
buildPythonPackage rec {
pname = "nmigen-boards";
version = "unstable-2019-09-23";
# python setup.py --version
realVersion = "0.1.dev55+g${lib.substring 0 7 src.rev}";
src = fetchFromGitHub {
owner = "m-labs";
repo = "nmigen-boards";
rev = "b8b2bbaff34c905f2b1094a74b6865961feb2290";
sha256 = "00gsdm7qf6gsxqmkgqz1ing1yc0352s14pvw863rdbjbd1bv5r0m";
};
nativeBuildInputs = [ setuptools_scm ];
propagatedBuildInputs = [ setuptools nmigen ];
preBuild = ''
export SETUPTOOLS_SCM_PRETEND_VERSION="${realVersion}"
'';
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 ];
};
}
|