python3Packages.wasmer: make cargoHash invariant to the Python version
The package name used the Python version. Since the name is used in the Cargo vendor directory, the Cargo vendor hash depended on the Python version. Remove the Python version from the name.
This commit is contained in:
parent
f6a583eeec
commit
491667c51a
1 changed files with 2 additions and 4 deletions
|
@ -11,7 +11,7 @@ let
|
||||||
version = "1.0.0-beta1";
|
version = "1.0.0-beta1";
|
||||||
|
|
||||||
wheel = rustPlatform.buildRustPackage rec {
|
wheel = rustPlatform.buildRustPackage rec {
|
||||||
name = "${pname}-${version}-py${python.version}";
|
inherit pname version;
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "wasmerio";
|
owner = "wasmerio";
|
||||||
|
@ -20,7 +20,7 @@ let
|
||||||
sha256 = "0302lcfjlw7nz18nf86z6swhhpp1qnpwcsm2fj4avl22rsv0h78j";
|
sha256 = "0302lcfjlw7nz18nf86z6swhhpp1qnpwcsm2fj4avl22rsv0h78j";
|
||||||
};
|
};
|
||||||
|
|
||||||
cargoSha256 = "0d83dniijjq8rc4fcwj6ja5x4hxh187afnqfd8c9fzb8nx909a0v";
|
cargoHash = "sha256-Rq5m9Lu6kePvohfhODLMOpGPFtCh0woTsQY2TufoiNQ=";
|
||||||
|
|
||||||
nativeBuildInputs = [ maturin python ];
|
nativeBuildInputs = [ maturin python ];
|
||||||
|
|
||||||
|
@ -50,8 +50,6 @@ let
|
||||||
in
|
in
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
# we can only support one python version because the cargo hash changes with the python version
|
|
||||||
disabled = !isPy38;
|
|
||||||
|
|
||||||
format = "wheel";
|
format = "wheel";
|
||||||
src = wheel;
|
src = wheel;
|
||||||
|
|
Loading…
Reference in a new issue