From 242c5e57ae6660dd0df44991dcdfe1cd6e6775f6 Mon Sep 17 00:00:00 2001 From: Raito Bezarius Date: Sat, 26 Aug 2023 13:02:17 +0200 Subject: [PATCH] python3Packages.cairo-lang: drop The Python cairo-lang package was devised to be a set of tooling for the 0.x Cairo language for general provable computations via zero knowledge STARK mechanisms. It has been superseded by the Rust compiler for the Cairo language nowadays which is available in nixpkgs. We do not need to keep this EOL and unmaintained package. --- .../python-modules/cairo-lang/default.nix | 105 ------------------ pkgs/top-level/python-packages.nix | 2 - 2 files changed, 107 deletions(-) delete mode 100644 pkgs/development/python-modules/cairo-lang/default.nix diff --git a/pkgs/development/python-modules/cairo-lang/default.nix b/pkgs/development/python-modules/cairo-lang/default.nix deleted file mode 100644 index d183b607b31a..000000000000 --- a/pkgs/development/python-modules/cairo-lang/default.nix +++ /dev/null @@ -1,105 +0,0 @@ -{ lib -, aiohttp -, buildPythonPackage -, cachetools -, ecdsa -, eth-hash -, fastecdsa -, fetchzip -, frozendict -, gmp -, lark -, marshmallow -, marshmallow-dataclass -, marshmallow-enum -, marshmallow-oneofschema -, mpmath -, numpy -, pipdeptree -, prometheus-client -, pytest -, pytest-asyncio -, pytestCheckHook -, pythonOlder -, pythonRelaxDepsHook -, pyyaml -, setuptools -, sympy -, typeguard -, web3 -}: - -buildPythonPackage rec { - pname = "cairo-lang"; - version = "0.10.1"; - format = "setuptools"; - - disabled = pythonOlder "3.7"; - - src = fetchzip { - url = "https://github.com/starkware-libs/cairo-lang/releases/download/v${version}/cairo-lang-${version}.zip"; - hash = "sha256-MNbzDqqNhij9JizozLp9hhQjbRGzWxECOErS3TOPlAA="; - }; - - nativeBuildInputs = [ - pythonRelaxDepsHook - ]; - - buildInputs = [ - gmp - ]; - - propagatedBuildInputs = [ - aiohttp - cachetools - setuptools - ecdsa - fastecdsa - sympy - mpmath - numpy - typeguard - frozendict - prometheus-client - marshmallow - marshmallow-enum - marshmallow-dataclass - marshmallow-oneofschema - pipdeptree - lark - web3 - eth-hash - pyyaml - ] ++ eth-hash.optional-dependencies.pycryptodome; - - nativeCheckInputs = [ - pytest-asyncio - pytestCheckHook - ]; - - pythonRelaxDeps = [ - "frozendict" - ]; - - pythonRemoveDeps = [ - # TODO: pytest and pytest-asyncio must be removed as they are check inputs - "pytest" - "pytest-asyncio" - ]; - - postFixup = '' - chmod +x $out/bin/* - ''; - - # There seems to be no test included in the ZIP releaseā€¦ - # Cloning from GitHub is harder because they use a custom CMake setup - # TODO(raitobezarius): upstream was pinged out of band about it. - doCheck = false; - - meta = with lib; { - description = "Tooling for Cairo language"; - homepage = "https://github.com/starkware/cairo-lang"; - license = licenses.mit; - maintainers = with maintainers; [ raitobezarius ]; - }; -} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 2e3225440d0e..b6904651f7bc 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -1677,8 +1677,6 @@ self: super: with self; { caio = callPackage ../development/python-modules/caio { }; - cairo-lang = callPackage ../development/python-modules/cairo-lang { }; - cairocffi = callPackage ../development/python-modules/cairocffi { }; cairosvg = callPackage ../development/python-modules/cairosvg { };