python3Packages.nmigen-boards: unstable-2019-08-30 -> unstable-2019-09-23

This commit is contained in:
Emily 2019-09-27 15:07:19 +01:00 committed by Austin Seipp
parent f68ec22dcc
commit 32c4e9e722

View File

@ -2,25 +2,28 @@
, buildPythonPackage , buildPythonPackage
, fetchFromGitHub , fetchFromGitHub
, nmigen , nmigen
, setuptools
, setuptools_scm
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "nmigen-boards"; pname = "nmigen-boards";
version = "unstable-2019-08-30"; version = "unstable-2019-09-23";
realVersion = lib.substring 0 7 src.rev; # python setup.py --version
realVersion = "0.1.dev55+g${lib.substring 0 7 src.rev}";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "m-labs"; owner = "m-labs";
repo = "nmigen-boards"; repo = "nmigen-boards";
rev = "3b80b3a3749ae8f123ff258a25e81bd21412aed4"; rev = "b8b2bbaff34c905f2b1094a74b6865961feb2290";
sha256 = "01qynxip8bq23jfjc5wjd97vxfvhld2zb8sxphwf0zixrmmyaspi"; sha256 = "00gsdm7qf6gsxqmkgqz1ing1yc0352s14pvw863rdbjbd1bv5r0m";
}; };
propagatedBuildInputs = [ nmigen ]; nativeBuildInputs = [ setuptools_scm ];
propagatedBuildInputs = [ setuptools nmigen ];
postPatch = '' preBuild = ''
substituteInPlace setup.py \ export SETUPTOOLS_SCM_PRETEND_VERSION="${realVersion}"
--replace 'versioneer.get_version()' '"${realVersion}"'
''; '';
meta = with lib; { meta = with lib; {