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
, fetchFromGitHub
, nmigen
, setuptools
, setuptools_scm
}:
buildPythonPackage rec {
pname = "nmigen-boards";
version = "unstable-2019-08-30";
realVersion = lib.substring 0 7 src.rev;
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 = "3b80b3a3749ae8f123ff258a25e81bd21412aed4";
sha256 = "01qynxip8bq23jfjc5wjd97vxfvhld2zb8sxphwf0zixrmmyaspi";
rev = "b8b2bbaff34c905f2b1094a74b6865961feb2290";
sha256 = "00gsdm7qf6gsxqmkgqz1ing1yc0352s14pvw863rdbjbd1bv5r0m";
};
propagatedBuildInputs = [ nmigen ];
nativeBuildInputs = [ setuptools_scm ];
propagatedBuildInputs = [ setuptools nmigen ];
postPatch = ''
substituteInPlace setup.py \
--replace 'versioneer.get_version()' '"${realVersion}"'
preBuild = ''
export SETUPTOOLS_SCM_PRETEND_VERSION="${realVersion}"
'';
meta = with lib; {