about summary refs log tree commit diff
path: root/pkgs/development/compilers/vyper/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/compilers/vyper/default.nix')
-rw-r--r--pkgs/development/compilers/vyper/default.nix91
1 files changed, 0 insertions, 91 deletions
diff --git a/pkgs/development/compilers/vyper/default.nix b/pkgs/development/compilers/vyper/default.nix
deleted file mode 100644
index 078cb7dac925..000000000000
--- a/pkgs/development/compilers/vyper/default.nix
+++ /dev/null
@@ -1,91 +0,0 @@
-{ lib
-, asttokens
-, buildPythonPackage
-, cbor2
-, fetchPypi
-, git
-, importlib-metadata
-, packaging
-, pycryptodome
-, pytest-runner
-, pythonOlder
-, pythonRelaxDepsHook
-, recommonmark
-, setuptools-scm
-, sphinx
-, sphinx-rtd-theme
-, writeText
-}:
-
-let
-  sample-contract = writeText "example.vy" ''
-    count: int128
-
-    @external
-    def __init__(foo: address):
-        self.count = 1
-  '';
-
-in
-buildPythonPackage rec {
-  pname = "vyper";
-  version = "0.3.10";
-  pyproject = true;
-
-  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
-    git
-
-    pythonRelaxDepsHook
-    pytest-runner
-    setuptools-scm
-  ];
-
-  pythonRelaxDeps = [
-    "asttokens"
-    "packaging"
-  ];
-
-  propagatedBuildInputs = [
-    asttokens
-    cbor2
-    importlib-metadata
-    packaging
-    pycryptodome
-
-    # docs
-    recommonmark
-    sphinx
-    sphinx-rtd-theme
-  ];
-
-  checkPhase = ''
-    $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 ];
-  };
-}