From d59900aa17fb30c3a734898ff35f12cb66fa70e3 Mon Sep 17 00:00:00 2001 From: Willy Hille Date: Fri, 22 May 2026 15:16:36 +0200 Subject: [PATCH] python3Packages.aspy-refactor-imports: drop upstream repo was renamed to classify-imports, which is already packaged in nixpkgs --- .../aspy-refactor-imports/default.nix | 34 ------------------- pkgs/top-level/python-aliases.nix | 1 + pkgs/top-level/python-packages.nix | 2 -- 3 files changed, 1 insertion(+), 36 deletions(-) delete mode 100644 pkgs/development/python-modules/aspy-refactor-imports/default.nix diff --git a/pkgs/development/python-modules/aspy-refactor-imports/default.nix b/pkgs/development/python-modules/aspy-refactor-imports/default.nix deleted file mode 100644 index 01c580bb56b2..000000000000 --- a/pkgs/development/python-modules/aspy-refactor-imports/default.nix +++ /dev/null @@ -1,34 +0,0 @@ -{ - lib, - buildPythonPackage, - fetchFromGitHub, - pytestCheckHook, - stdenv, -}: - -buildPythonPackage rec { - pname = "aspy-refactor-imports"; - version = "4.2.0"; - format = "setuptools"; - - src = fetchFromGitHub { - owner = "asottile"; - repo = "aspy.refactor_imports"; - tag = "v${version}"; - sha256 = "sha256-f5wZfisKz9WGdq6u0rd/zg2CfMwWvQeR8xZQNbD7KfU="; - }; - - pythonImportsCheck = [ "aspy.refactor_imports" ]; - - nativeCheckInputs = [ pytestCheckHook ]; - - # fails on darwin due to case-insensitive file system - disabledTests = lib.optionals stdenv.hostPlatform.isDarwin [ "test_application_directory_case" ]; - - meta = { - description = "Utilities for refactoring imports in python-like syntax"; - homepage = "https://github.com/asottile/aspy.refactor_imports"; - license = lib.licenses.mit; - maintainers = with lib.maintainers; [ gador ]; - }; -} diff --git a/pkgs/top-level/python-aliases.nix b/pkgs/top-level/python-aliases.nix index a7520ae5352d..4ae2ac72985c 100644 --- a/pkgs/top-level/python-aliases.nix +++ b/pkgs/top-level/python-aliases.nix @@ -87,6 +87,7 @@ mapAliases { apkit = throw "apkit was removed because it is unmaintained upstream and different from apkit on PyPI"; # added 2025-09-13 APScheduler = throw "'APScheduler' has been renamed to/replaced by 'apscheduler'"; # Converted to throw 2025-10-29 argon2_cffi = throw "'argon2_cffi' has been renamed to/replaced by 'argon2-cffi'"; # Converted to throw 2025-10-29 + aspy-refactor-imports = throw "'aspy-refactor-imports' has been renamed to/replaced by 'classify-imports'"; # Added 2026-05-22 astropy-extension-helpers = extension-helpers; # Added 2025-10-15 asyauth-bad = throw "'asyauth-bad' has been renamed to/replaced by 'badauth'"; # added 2025-11-06 async-dns = throw "'async-dns' has been removed as it was unmaintained upstream"; # Added 2026-03-23 diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 73ea6e0ad256..20fd3eb069cc 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -1080,8 +1080,6 @@ self: super: with self; { aspell-python = callPackage ../development/python-modules/aspell-python { }; - aspy-refactor-imports = callPackage ../development/python-modules/aspy-refactor-imports { }; - aspy-yaml = callPackage ../development/python-modules/aspy-yaml { }; assay = callPackage ../development/python-modules/assay { };