diff options
author | Alyssa Ross <hi@alyssa.is> | 2024-01-20 12:31:50 +0100 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2024-01-20 12:32:25 +0100 |
commit | b7baf40e099b4215181fe7b0c63083b12ef2c7fb (patch) | |
tree | a6efabd31d05b6d0a36624729e80377bbbfb0149 /nixpkgs/pkgs/development/compilers/vyper/default.nix | |
parent | 710028664e26e85cb831a869b3da9f6993902255 (diff) | |
parent | 0799f514b1cd74878174939df79ac60ca5036673 (diff) | |
download | nixlib-b7baf40e099b4215181fe7b0c63083b12ef2c7fb.tar nixlib-b7baf40e099b4215181fe7b0c63083b12ef2c7fb.tar.gz nixlib-b7baf40e099b4215181fe7b0c63083b12ef2c7fb.tar.bz2 nixlib-b7baf40e099b4215181fe7b0c63083b12ef2c7fb.tar.lz nixlib-b7baf40e099b4215181fe7b0c63083b12ef2c7fb.tar.xz nixlib-b7baf40e099b4215181fe7b0c63083b12ef2c7fb.tar.zst nixlib-b7baf40e099b4215181fe7b0c63083b12ef2c7fb.zip |
Merge branch 'nixos-unstable-small' of https://github.com/NixOS/nixpkgs
Conflicts: nixpkgs/pkgs/build-support/rust/build-rust-package/default.nix
Diffstat (limited to 'nixpkgs/pkgs/development/compilers/vyper/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/compilers/vyper/default.nix | 43 |
1 files changed, 28 insertions, 15 deletions
diff --git a/nixpkgs/pkgs/development/compilers/vyper/default.nix b/nixpkgs/pkgs/development/compilers/vyper/default.nix index 1a621f54acd4..fb83f299bd8c 100644 --- a/nixpkgs/pkgs/development/compilers/vyper/default.nix +++ b/nixpkgs/pkgs/development/compilers/vyper/default.nix @@ -1,20 +1,20 @@ { lib +, asttokens , buildPythonPackage +, cbor2 , fetchPypi +, git +, importlib-metadata +, packaging +, pycryptodome +, pytest-runner , pythonOlder , pythonRelaxDepsHook -, writeText -, asttokens -, pycryptodome -, importlib-metadata -, cbor2 , recommonmark -, semantic-version +, setuptools-scm , sphinx , sphinx-rtd-theme -, pytest-runner -, setuptools-scm -, git +, writeText }: let @@ -30,15 +30,21 @@ in buildPythonPackage rec { pname = "vyper"; version = "0.3.10"; - format = "setuptools"; + pyproject = true; - disabled = pythonOlder "3.7"; + disabled = pythonOlder "3.10"; src = fetchPypi { inherit pname version; hash = "sha256-jcH1AcqrQX+wzpxoppRFh/AUfsfMfTiJzzpFwZRm5Ik="; }; + postPatch = '' + # pythonRelaxDeps doesn't work + substituteInPlace setup.py \ + --replace "setuptools_scm>=7.1.0,<8.0.0" "setuptools_scm>=7.1.0" + ''; + nativeBuildInputs = [ # Git is used in setup.py to compute version information during building # ever since https://github.com/vyperlang/vyper/pull/2816 @@ -49,14 +55,16 @@ buildPythonPackage rec { setuptools-scm ]; - pythonRelaxDeps = [ "asttokens" "semantic-version" ]; + pythonRelaxDeps = [ + "asttokens" + ]; propagatedBuildInputs = [ asttokens - pycryptodome - semantic-version - importlib-metadata cbor2 + importlib-metadata + packaging + pycryptodome # docs recommonmark @@ -68,9 +76,14 @@ buildPythonPackage rec { $out/bin/vyper "${sample-contract}" ''; + pythonImportsCheck = [ + "vyper" + ]; + meta = with lib; { description = "Pythonic Smart Contract Language for the EVM"; homepage = "https://github.com/vyperlang/vyper"; + changelog = "https://github.com/vyperlang/vyper/releases/tag/v${version}"; license = licenses.asl20; maintainers = with maintainers; [ siraben ]; }; |