diff options
author | Emily <vcs@emily.moe> | 2019-09-27 15:07:19 +0100 |
---|---|---|
committer | Austin Seipp <aseipp@pobox.com> | 2019-09-28 16:55:21 -0500 |
commit | 32c4e9e7229a4ccca758e1a6f93785c644effaea (patch) | |
tree | 029750c032ce0df7b78ed96796b013673b05c541 | |
parent | f68ec22dcc7bf8289c06c6f74ced87b91b31dd2e (diff) | |
download | nixpkgs-32c4e9e7229a4ccca758e1a6f93785c644effaea.tar nixpkgs-32c4e9e7229a4ccca758e1a6f93785c644effaea.tar.gz nixpkgs-32c4e9e7229a4ccca758e1a6f93785c644effaea.tar.bz2 nixpkgs-32c4e9e7229a4ccca758e1a6f93785c644effaea.tar.lz nixpkgs-32c4e9e7229a4ccca758e1a6f93785c644effaea.tar.xz nixpkgs-32c4e9e7229a4ccca758e1a6f93785c644effaea.tar.zst nixpkgs-32c4e9e7229a4ccca758e1a6f93785c644effaea.zip |
python3Packages.nmigen-boards: unstable-2019-08-30 -> unstable-2019-09-23
-rw-r--r-- | pkgs/development/python-modules/nmigen-boards/default.nix | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/pkgs/development/python-modules/nmigen-boards/default.nix b/pkgs/development/python-modules/nmigen-boards/default.nix index 4151d08b60f..7f4654eab79 100644 --- a/pkgs/development/python-modules/nmigen-boards/default.nix +++ b/pkgs/development/python-modules/nmigen-boards/default.nix @@ -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; { |